From 55406d9f781eb662d9c2737fbcd1d4c298fd4ead Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 11 Aug 2012 17:46:16 +0000 Subject: [PATCH] Fix a cast that was casting away 'const' unnecessarily llvm-svn: 161726 --- llvm/lib/Target/X86/X86FastISel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index 72ff4e8e8d9f..9ba7a1fcb705 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -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();