Re-enable 91381 with fixes.
[oota-llvm.git] / lib / Analysis / MemoryBuiltins.cpp
index 9f036f4e2ae26b14215db752bcf93ff67219da75..b4486283feea1c35b6d88493c7e32f79afbe226a 100644 (file)
@@ -105,9 +105,8 @@ static Value *computeArraySize(const CallInst *CI, const TargetData *TD,
   // return the multiple.  Otherwise, return NULL.
   Value *MallocArg = CI->getOperand(1);
   Value *Multiple = NULL;
-  APInt Val(TD->getTypeSizeInBits(MallocArg->getType()->getScalarType()), 0);
   if (ComputeMultiple(MallocArg, ElementSize, Multiple,
-                      Val, LookThroughSExt, TD))
+                      LookThroughSExt))
     return Multiple;
 
   return NULL;