[llvm-commits] CVS: llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp
Chris Lattner
clattner at apple.com
Tue Apr 17 16:55:56 PDT 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);
> }
FWIW, this isn't right: you are passing in a pointer past the call
instruction :)
-Chris
More information about the llvm-commits
mailing list