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

Andrew Lenharth alenhar2 at cs.uiuc.edu
Tue Apr 17 17:29:19 PDT 2007



Changes in directory llvm-poolalloc/lib/PoolAllocate:

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

This is really really ugly

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

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


Index: llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp
diff -u llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.63 llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.64
--- llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.63	Tue Apr 17 18:38:04 2007
+++ llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp	Tue Apr 17 19:29:02 2007
@@ -654,7 +654,8 @@
 	  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+1);
+          BasicBlock::iterator BBI = TheCall;
+          new CallInst(PAInfo.PoolDestroy, ArgVal, "", ++BBI);
 	}
 	//probably need to update DSG
 	//      std::cerr << "WARNING: NULL POOL ARGUMENTS ARE PASSED IN!\n";






More information about the llvm-commits mailing list