aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar
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
commit787ed03ec17b3936b15a9997fa107a3bdcb69050 (patch)
treef472eea5d4853bc17b3bf3c1b1de536d3273d8f2 /lib/Transforms/Scalar
parent53799048071ad5746fcbc2dca55cdcf5c5593870 (diff)
downloadexternal_llvm-787ed03ec17b3936b15a9997fa107a3bdcb69050.zip
external_llvm-787ed03ec17b3936b15a9997fa107a3bdcb69050.tar.gz
external_llvm-787ed03ec17b3936b15a9997fa107a3bdcb69050.tar.bz2
revise debug output to avoid dangling pointer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar')
-rw-r--r--lib/Transforms/Scalar/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp
index a3c426a..a8deda8 100644
--- a/lib/Transforms/Scalar/CodeGenPrepare.cpp
+++ b/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;