Fix a cast that was casting away 'const' unnecessarily

llvm-svn: 161726
This commit is contained in:
Craig Topper 2012-08-11 17:46:16 +00:00
parent 22cb0c572b
commit 55406d9f78
1 changed files with 1 additions and 1 deletions

View File

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