1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Fix this debug output to handle the case where the loop has been deleted.

llvm-svn: 82994
This commit is contained in:
Dan Gohman 2009-09-28 15:40:01 +00:00
parent aade5fefdb
commit 7a5cb984e6

View File

@ -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) {