[llvm-commits] CVS: llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp TransformFunctionBody.cpp
John Criswell
criswell at cs.uiuc.edu
Tue Dec 19 15:11:09 PST 2006
Changes in directory llvm-poolalloc/lib/PoolAllocate:
PoolAllocate.cpp updated: 1.129 -> 1.130
TransformFunctionBody.cpp updated: 1.59 -> 1.60
---
Log message:
Update to latest LLVM by updating all getCast() constant expressions.
---
Diffs of the changes: (+2 -2)
PoolAllocate.cpp | 2 +-
TransformFunctionBody.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp
diff -u llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.129 llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.130
--- llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.129 Wed Dec 13 23:51:07 2006
+++ llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp Tue Dec 19 17:10:34 2006
@@ -162,7 +162,7 @@
for (std::map<Function *, Function *>::iterator I = FuncMap.begin(),
E = FuncMap.end(); I != E; ++I) {
Function *F = I->first;
- F->replaceAllUsesWith(ConstantExpr::getCast(I->second, F->getType()));
+ F->replaceAllUsesWith(ConstantExpr::getPointerCast(I->second, F->getType()));
}
if (CurHeuristic->IsRealHeuristic())
Index: llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp
diff -u llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.59 llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.60
--- llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.59 Wed Dec 13 23:51:07 2006
+++ llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp Tue Dec 19 17:10:34 2006
@@ -717,6 +717,6 @@
for (unsigned i = 0, e = I.getNumOperands(); i != e; ++i)
if (Function *clonedFunc = retCloneIfFunc(I.getOperand(i))) {
Constant *CF = clonedFunc;
- I.setOperand(i, ConstantExpr::getCast(CF, I.getOperand(i)->getType()));
+ I.setOperand(i, ConstantExpr::getPointerCast(CF, I.getOperand(i)->getType()));
}
}
More information about the llvm-commits
mailing list