summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorMichael Liao <michael.liao@intel.com>2012-08-21 05:55:22 +0000
committerMichael Liao <michael.liao@intel.com>2012-08-21 05:55:22 +0000
commit6e12d12830c3a8745b5ee77eb9ac108b70cc213f (patch)
treef05228210aed38699e50c78f562f403eee9f4151 /llvm/lib/Transforms
parentc7520bf7858df3b14f26471d2cc822ef0738bb5e (diff)
downloadbcm5719-llvm-6e12d12830c3a8745b5ee77eb9ac108b70cc213f.tar.gz
bcm5719-llvm-6e12d12830c3a8745b5ee77eb9ac108b70cc213f.zip
revise debug output to avoid dangling pointer
llvm-svn: 162256
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
index a3c426a714e..a8deda8b746 100644
--- a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
+++ b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
@@ -220,6 +220,7 @@ bool CodeGenPrepare::EliminateFallThrough(Function &F) {
BranchInst *Term = dyn_cast<BranchInst>(SinglePred->getTerminator());
if (Term && !Term->isConditional()) {
Changed = true;
+ DEBUG(dbgs() << "To merge:\n"<< *SinglePred << "\n\n\n");
// Remember if SinglePred was the entry block of the function.
// If so, we will need to move BB back to the entry position.
bool isEntry = SinglePred == &SinglePred->getParent()->getEntryBlock();
@@ -230,7 +231,6 @@ bool CodeGenPrepare::EliminateFallThrough(Function &F) {
// We have erased a block. Update the iterator.
I = BB;
- DEBUG(dbgs() << "Merged:\n"<< *SinglePred << "\n\n\n");
}
}
return Changed;
OpenPOWER on IntegriCloud