mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Add more const qualifiers for LLVM IR pointers in CodeGen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101342 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1358,7 +1358,7 @@ ARMPreAllocLoadStoreOpt::CanFormLdStDWord(MachineInstr *Op0, MachineInstr *Op1,
|
||||
return false;
|
||||
|
||||
unsigned Align = (*Op0->memoperands_begin())->getAlignment();
|
||||
Function *Func = MF->getFunction();
|
||||
const Function *Func = MF->getFunction();
|
||||
unsigned ReqAlign = STI->hasV6Ops()
|
||||
? TD->getPrefTypeAlignment(Type::getInt64Ty(Func->getContext()))
|
||||
: 8; // Pre-v6 need 8-byte align
|
||||
|
Reference in New Issue
Block a user