OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
237e1da
)
use getArgOperand (corrected by CallInst::ArgOffset) instead of getOperand
author
Gabor Greif
<ggreif@gmail.com>
Wed, 30 Jun 2010 09:19:23 +0000
(09:19 +0000)
committer
Gabor Greif
<ggreif@gmail.com>
Wed, 30 Jun 2010 09:19:23 +0000
(09:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107273
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/CodeGenPrepare.cpp
b/lib/Transforms/Scalar/CodeGenPrepare.cpp
index
f645a5a
..
272066c
100644
(file)
--- a/
lib/Transforms/Scalar/CodeGenPrepare.cpp
+++ b/
lib/Transforms/Scalar/CodeGenPrepare.cpp
@@
-548,7
+548,8
@@
protected:
CI->eraseFromParent();
}
bool isFoldable(unsigned SizeCIOp, unsigned, bool) const {
- if (ConstantInt *SizeCI = dyn_cast<ConstantInt>(CI->getOperand(SizeCIOp)))
+ if (ConstantInt *SizeCI = dyn_cast<ConstantInt>(CI->getArgOperand(SizeCIOp
+ - CallInst::ArgOffset)))
return SizeCI->isAllOnesValue();
return false;
}