diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-28 15:40:01 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-28 15:40:01 +0000 |
commit | 322b95cd5f94bb3ff21ce3e809ba36f1a292aea8 (patch) | |
tree | 3747963f860066d3dcf7d8cc556eff1044e805f0 /lib/Analysis/LoopPass.cpp | |
parent | 6d594a9d76ed93cd03723283c1e7ea1b59075a3d (diff) |
Fix this debug output to handle the case where the loop has been deleted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopPass.cpp')
-rw-r--r-- | lib/Analysis/LoopPass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index e346cc0dd4..43463cd8ef 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -241,7 +241,8 @@ bool LPPassManager::runOnFunction(Function &F) { if (Changed) dumpPassInfo(P, MODIFICATION_MSG, ON_LOOP_MSG, - CurrentLoop->getHeader()->getNameStr()); + skipThisLoop ? "<deleted>" : + CurrentLoop->getHeader()->getNameStr()); dumpPreservedSet(P); if (!skipThisLoop) { |