[llvm] r227643 - Avoid using the cast and use the templated accessor function.
Eric Christopher
echristo at gmail.com
Fri Jan 30 15:46:40 PST 2015
Author: echristo
Date: Fri Jan 30 17:46:40 2015
New Revision: 227643
URL: http://llvm.org/viewvc/llvm-project?rev=227643&view=rev
Log:
Avoid using the cast and use the templated accessor function.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp?rev=227643&r1=227642&r2=227643&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp Fri Jan 30 17:46:40 2015
@@ -58,7 +58,7 @@ public:
FnAttrs.hasAttribute(AttributeSet::FunctionIndex,
Attribute::OptimizeForSize) ||
FnAttrs.hasAttribute(AttributeSet::FunctionIndex, Attribute::MinSize);
- Subtarget = &static_cast<const AArch64Subtarget &>(MF.getSubtarget());
+ Subtarget = &MF.getSubtarget<AArch64Subtarget>();
return SelectionDAGISel::runOnMachineFunction(MF);
}
More information about the llvm-commits
mailing list