From: Dan Gohman Date: Mon, 28 Sep 2009 15:40:01 +0000 (+0000) Subject: Fix this debug output to handle the case where the loop has been deleted. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=322b95cd5f94bb3ff21ce3e809ba36f1a292aea8;p=oota-llvm.git 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 --- diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index e346cc0dd41..43463cd8ef1 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 ? "" : + CurrentLoop->getHeader()->getNameStr()); dumpPreservedSet(P); if (!skipThisLoop) {