Avoid using the cast and use the templated accessor function.

llvm-svn: 227643
This commit is contained in:
Eric Christopher 2015-01-30 23:46:40 +00:00
parent aab9677f65
commit 1e51334459
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}