mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
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
This commit is contained in:
parent
cfb61b368c
commit
8e55a9e78d
@ -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…
x
Reference in New Issue
Block a user