mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
Fix a cast that was casting away 'const' unnecessarily
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161726 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2865422a4d
commit
dca72541d5
@ -2182,7 +2182,7 @@ bool X86FastISel::TryToFoldLoad(MachineInstr *MI, unsigned OpNo,
|
||||
if (!X86SelectAddress(LI->getOperand(0), AM))
|
||||
return false;
|
||||
|
||||
X86InstrInfo &XII = (X86InstrInfo&)TII;
|
||||
const X86InstrInfo &XII = (const X86InstrInfo&)TII;
|
||||
|
||||
unsigned Size = TD.getTypeAllocSize(LI->getType());
|
||||
unsigned Alignment = LI->getAlignment();
|
||||
|
Loading…
Reference in New Issue
Block a user