[llvm-commits] [poolalloc] r56882 - in /poolalloc/trunk: include/poolalloc/PoolAllocate.h lib/PoolAllocate/PoolAllocate.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Tue Sep 30 14:02:18 PDT 2008
Author: alenhar2
Date: Tue Sep 30 16:02:18 2008
New Revision: 56882
URL: http://llvm.org/viewvc/llvm-project?rev=56882&view=rev
Log:
minor func name change
Modified:
poolalloc/trunk/include/poolalloc/PoolAllocate.h
poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp
Modified: poolalloc/trunk/include/poolalloc/PoolAllocate.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/poolalloc/PoolAllocate.h?rev=56882&r1=56881&r2=56882&view=diff
==============================================================================
--- poolalloc/trunk/include/poolalloc/PoolAllocate.h (original)
+++ poolalloc/trunk/include/poolalloc/PoolAllocate.h Tue Sep 30 16:02:18 2008
@@ -356,7 +356,7 @@
/// load or store to that pool is performed.
struct PoolAllocatePassAllPools : public PoolAllocate {
static char ID;
- PoolAllocatePassAllPools() : PoolAllocate(true, (intptr_t) &ID) {}
+ PoolAllocatePassAllPools() : PoolAllocate(true, false, (intptr_t) &ID) {}
};
/// PoolAllocateSimple - This class modifies the heap allocations so that they
Modified: poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp?rev=56882&r1=56881&r2=56882&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp Tue Sep 30 16:02:18 2008
@@ -231,11 +231,12 @@
// Get the Function out of the constant
Function * F;
ConstantExpr * CE;
- if (!(F=dyn_cast<Function>(C)))
+ if (!(F=dyn_cast<Function>(C))) {
if ((CE = dyn_cast<ConstantExpr>(C)) && (CE->isCast()))
F = dyn_cast<Function>(CE->getOperand(0));
else
assert (0 && "Constant is not a Function of ConstantExpr!");
+ }
Calls.clear();
for (Value::use_iterator UI = F->use_begin(), E = F->use_end(); UI != E; ++UI)
Calls.push_back(cast<CallInst>(*UI));
More information about the llvm-commits
mailing list