forked from OSchip/llvm-project
Avoid using the cast and use the templated accessor function.
llvm-svn: 227643
This commit is contained in:
parent
aab9677f65
commit
1e51334459
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue