projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2865422
)
Fix a cast that was casting away 'const' unnecessarily
author
Craig Topper
<craig.topper@gmail.com>
Sat, 11 Aug 2012 17:46:16 +0000
(17:46 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Sat, 11 Aug 2012 17:46:16 +0000
(17:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161726
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86FastISel.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86FastISel.cpp
b/lib/Target/X86/X86FastISel.cpp
index 72ff4e8e8d9f97d80385739d6b5f06c95122b77e..9ba7a1fcb705719a1c886d5149895efea7ef6866 100644
(file)
--- a/
lib/Target/X86/X86FastISel.cpp
+++ b/
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();