[llvm-commits] [poolalloc] r95248 - /poolalloc/trunk/lib/PoolAllocate/PASimple.cpp
John Criswell
criswell at uiuc.edu
Wed Feb 3 12:53:58 PST 2010
Author: criswell
Date: Wed Feb 3 14:53:58 2010
New Revision: 95248
URL: http://llvm.org/viewvc/llvm-project?rev=95248&view=rev
Log:
Correct transformation of calloc() to poolcalloc().
The old code was passing one of the calloc() arguments twice if a cast
needed to be inserted.
Modified:
poolalloc/trunk/lib/PoolAllocate/PASimple.cpp
Modified: poolalloc/trunk/lib/PoolAllocate/PASimple.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/PASimple.cpp?rev=95248&r1=95247&r2=95248&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PASimple.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PASimple.cpp Wed Feb 3 14:53:58 2010
@@ -271,7 +271,7 @@
InsertPt);
if (NumElements->getType() != Int32Type)
- NumElements = CastInst::CreateIntegerCast (Size,
+ NumElements = CastInst::CreateIntegerCast (NumElements,
Int32Type,
false,
NumElements->getName(),
More information about the llvm-commits
mailing list