From: Eric Christopher Date: Fri, 30 Jan 2015 23:46:40 +0000 (+0000) Subject: Avoid using the cast and use the templated accessor function. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8e55a9e78d0aff26e4f0d6651e30c82f07e95458;p=oota-llvm.git Avoid using the cast and use the templated accessor function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227643 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp index 2898e505e32..8735ca08e3e 100644 --- a/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp +++ b/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp @@ -58,7 +58,7 @@ public: FnAttrs.hasAttribute(AttributeSet::FunctionIndex, Attribute::OptimizeForSize) || FnAttrs.hasAttribute(AttributeSet::FunctionIndex, Attribute::MinSize); - Subtarget = &static_cast(MF.getSubtarget()); + Subtarget = &MF.getSubtarget(); return SelectionDAGISel::runOnMachineFunction(MF); }