[llvm-commits] CVS: llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Tue Apr 17 16:38:22 PDT 2007



Changes in directory llvm-poolalloc/lib/PoolAllocate:

TransformFunctionBody.cpp updated: 1.62 -> 1.63
---
Log message:

Fix

---
Diffs of the changes:  (+1 -1)

 TransformFunctionBody.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp
diff -u llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.62 llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.63
--- llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.62	Wed Apr 11 12:27:53 2007
+++ llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp	Tue Apr 17 18:38:04 2007
@@ -654,7 +654,7 @@
 	  Value *Align  = ConstantInt::get(Type::Int32Ty,0);
           Value* Opts[3] = {ArgVal, ElSize, Align};
 	  new CallInst(PAInfo.PoolInit, Opts, 3,"", TheCall);
-	    new CallInst(PAInfo.PoolDestroy, ArgVal, "", TheCall->getNext());
+          new CallInst(PAInfo.PoolDestroy, ArgVal, "", TheCall+1);
 	}
 	//probably need to update DSG
 	//      std::cerr << "WARNING: NULL POOL ARGUMENTS ARE PASSED IN!\n";






More information about the llvm-commits mailing list