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-Tag: llvmorg-3.7.0-rc1~13549 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e5133445918c2db16f2995e036a3aa92f67cbbe;p=platform%2Fupstream%2Fllvm.git Avoid using the cast and use the templated accessor function. llvm-svn: 227643 --- diff --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp index 2898e50..8735ca0 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp +++ b/llvm/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); }