[llvm-commits] CVS: llvm/lib/Transforms/Utils/CloneFunction.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat May 27 10:28:38 PDT 2006
Changes in directory llvm/lib/Transforms/Utils:
CloneFunction.cpp updated: 1.27 -> 1.28
---
Log message:
Fix some regression from the inliner patch I committed last night. This fixes
ldecod, lencod, and SPASS.
---
Diffs of the changes: (+1 -1)
CloneFunction.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/Utils/CloneFunction.cpp
diff -u llvm/lib/Transforms/Utils/CloneFunction.cpp:1.27 llvm/lib/Transforms/Utils/CloneFunction.cpp:1.28
--- llvm/lib/Transforms/Utils/CloneFunction.cpp:1.27 Fri May 26 20:22:24 2006
+++ llvm/lib/Transforms/Utils/CloneFunction.cpp Sat May 27 12:28:13 2006
@@ -311,7 +311,7 @@
for (; (PN = dyn_cast<PHINode>(I)); ++I) {
for (unsigned pred = 0, e = NumPreds; pred != e; ++pred) {
if (BasicBlock *MappedBlock =
- cast<BasicBlock>(ValueMap[PN->getIncomingBlock(pred)])) {
+ cast_or_null<BasicBlock>(ValueMap[PN->getIncomingBlock(pred)])) {
Value *InVal = MapValue(PN->getIncomingValue(pred), ValueMap);
assert(InVal && "Unknown input value?");
PN->setIncomingValue(pred, InVal);
More information about the llvm-commits
mailing list