Remove isPod() from DenseMapInfo, splitting it out to its own
[oota-llvm.git] / lib / Analysis / ValueTracking.cpp
index 31d3ccca36adedd2a03c8316f9591d8dfdb0dc43..22c6e3b6f121145c7579d87186e6072106b4bc23 100644 (file)
@@ -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: