summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-06-16 01:52:07 +0000
committerChris Lattner <sabre@nondot.org>2005-06-16 01:52:07 +0000
commit104002bee3030628e364f65c41da0ed9c8b90090 (patch)
tree446caf891f669e1b0198464500c74a4486b55c8e /llvm/lib/Transforms
parentd48b127aeaaee0041d36fbb83855699e721e2c4f (diff)
downloadbcm5719-llvm-104002bee3030628e364f65c41da0ed9c8b90090.tar.gz
bcm5719-llvm-104002bee3030628e364f65c41da0ed9c8b90090.zip
Fix a bug in my previous patch. Do not get the shift amount type (which
is always ubyte, get the type being shifted). This unbreaks espresso llvm-svn: 22224
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 02438202dc5..046b434bd2a 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -2614,7 +2614,7 @@ Instruction *InstCombiner::visitSetCondInst(SetCondInst &I) {
// Check that the shift amount is in range. If not, don't perform
// undefined shifts. When the shift is visited it will be
// simplified.
- unsigned TypeBits = ShAmt->getType()->getPrimitiveSizeInBits();
+ unsigned TypeBits = CI->getType()->getPrimitiveSizeInBits();
if (ShAmt->getValue() >= TypeBits)
break;
OpenPOWER on IntegriCloud