[llvm-commits] [poolalloc] r129659 - /poolalloc/trunk/lib/AssistDS/TypeChecks.cpp

Arushi Aggarwal aggarwa4 at illinois.edu
Sun Apr 17 08:25:00 PDT 2011


Author: aggarwa4
Date: Sun Apr 17 10:25:00 2011
New Revision: 129659

URL: http://llvm.org/viewvc/llvm-project?rev=129659&view=rev
Log:
Get the type from the type of the value stored.

Modified:
    poolalloc/trunk/lib/AssistDS/TypeChecks.cpp

Modified: poolalloc/trunk/lib/AssistDS/TypeChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/TypeChecks.cpp?rev=129659&r1=129658&r2=129659&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/TypeChecks.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/TypeChecks.cpp Sun Apr 17 10:25:00 2011
@@ -225,7 +225,7 @@
   std::vector<Value *> Args;
   Args.push_back(BCI);
   Args.push_back(BCI_Src);
-  Args.push_back(ConstantInt::get(Int8Ty, TD->getTypeStoreSize(SS->getType())));
+  Args.push_back(ConstantInt::get(Int8Ty, TD->getTypeStoreSize(SI.getOperand(0)->getType())));
 
   // Create the call to the runtime check and place it before the store instruction.
   Constant *F = M.getOrInsertFunction("copyTypeInfo", VoidTy, VoidPtrTy, VoidPtrTy, Int8Ty, NULL);





More information about the llvm-commits mailing list