aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2009-12-02 04:59:58 +0000
committerMon P Wang <wangmp@apple.com>2009-12-02 04:59:58 +0000
commit69a008075b29fbe0644ccbeecf1418ef8cca5e24 (patch)
treea2224d38112c7449a818b5eb4f9d814e9a651add /lib/Analysis
parente3a18de4f66a90040fb67495578652e36a886af5 (diff)
downloadexternal_llvm-69a008075b29fbe0644ccbeecf1418ef8cca5e24.zip
external_llvm-69a008075b29fbe0644ccbeecf1418ef8cca5e24.tar.gz
external_llvm-69a008075b29fbe0644ccbeecf1418ef8cca5e24.tar.bz2
Fixed an assertion failure for tracking sext of a vector of integers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90290 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/ValueTracking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp
index 31d3ccc..22c6e3b 100644
--- a/lib/Analysis/ValueTracking.cpp
+++ b/lib/Analysis/ValueTracking.cpp
@@ -659,7 +659,7 @@ unsigned llvm::ComputeNumSignBits(Value *V, const TargetData *TD,
switch (Operator::getOpcode(V)) {
default: break;
case Instruction::SExt:
- Tmp = TyBits-cast<IntegerType>(U->getOperand(0)->getType())->getBitWidth();
+ Tmp = TyBits - U->getOperand(0)->getType()->getScalarSizeInBits();
return ComputeNumSignBits(U->getOperand(0), TD, Depth+1) + Tmp;
case Instruction::AShr: