diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-03-23 06:06:09 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-03-23 06:06:09 +0000 |
commit | 3f7842232e853834a7338933663cc77ee0089b7f (patch) | |
tree | b5d3de964f1cf2e5242f98f30e552c6e7cdc8bef /llvm/lib | |
parent | 340861d29e954e9428c32856d03b3fb01aa5d864 (diff) | |
download | bcm5719-llvm-3f7842232e853834a7338933663cc77ee0089b7f.tar.gz bcm5719-llvm-3f7842232e853834a7338933663cc77ee0089b7f.zip |
Fix an incorrect logic causing instcombine to miss some _chk -> non-chk transformations.
llvm-svn: 99263
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 65f2e15d278..76c815da862 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -766,7 +766,7 @@ protected: return SizeCI->getZExtValue() >= GetStringLength(CI->getOperand(SizeArgOp)); if (ConstantInt *Arg = dyn_cast<ConstantInt>(CI->getOperand(SizeArgOp))) - return SizeCI->getZExtValue() <= Arg->getZExtValue(); + return SizeCI->getZExtValue() >= Arg->getZExtValue(); } return false; } |