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:
e07c15c
)
Fix a bug in my previous patch
author
Chris Lattner
<sabre@nondot.org>
Sun, 6 May 2007 07:24:03 +0000
(07:24 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 6 May 2007 07:24:03 +0000
(07:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36857
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index 672fe852e69861f99cbd089dd246a28a09f732b3..d870d65b5d8a17fc362ae5686ca093bcac90fb3a 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-5600,7
+5600,7
@@
Instruction *InstCombiner::visitICmpInstWithCastAndCast(ICmpInst &ICI) {
cast<IntegerType>(DestTy)->getBitWidth()) {
Value *RHSOp = 0;
if (Constant *RHSC = dyn_cast<Constant>(ICI.getOperand(1))) {
- RHSOp = ConstantExpr::get
PtrToInt
(RHSC, SrcTy);
+ RHSOp = ConstantExpr::get
IntToPtr
(RHSC, SrcTy);
} else if (PtrToIntInst *RHSC = dyn_cast<PtrToIntInst>(ICI.getOperand(1))) {
RHSOp = RHSC->getOperand(0);
// If the pointer types don't match, insert a bitcast.