diff --git a/compiler/infra/InterferenceGraph.cpp b/compiler/infra/InterferenceGraph.cpp index c6e2b5f8d64..f9c4bb7802c 100644 --- a/compiler/infra/InterferenceGraph.cpp +++ b/compiler/infra/InterferenceGraph.cpp @@ -417,7 +417,7 @@ bool TR_InterferenceGraph::simplify() } } - TR_ASSERT(bestSpillNode, "Could not find a spill candidate.\n"); + TR_ASSERT_FATAL(bestSpillNode, "Could not find a spill candidate"); virtualRemoveNodeFromIG(bestSpillNode); workingSet->reset(bestSpillNode->getIndex()); diff --git a/compiler/optimizer/CopyPropagation.cpp b/compiler/optimizer/CopyPropagation.cpp index 911acfd5ff8..4f506f551fe 100644 --- a/compiler/optimizer/CopyPropagation.cpp +++ b/compiler/optimizer/CopyPropagation.cpp @@ -1230,7 +1230,7 @@ void TR_CopyPropagation::replaceCopySymbolReferenceByOriginalIn(TR::SymbolRefere if (origNode->getNumChildren() == 2) { twoChildrenCase = true; - TR_ASSERT(0, "Only in WCode we can add extra children\n"); + TR_ASSERT_FATAL(false, "Cannot add extra children"); } else { diff --git a/compiler/optimizer/Structure.cpp b/compiler/optimizer/Structure.cpp index 09d0ef407c8..d3d6846eaa8 100644 --- a/compiler/optimizer/Structure.cpp +++ b/compiler/optimizer/Structure.cpp @@ -2737,6 +2737,7 @@ bool TR_RegionStructure::changeContinueLoopsToNestedLoops(TR_RegionStructure *ro { diagnostic("Incoming [%p] edge %d->%d\n", incomingEdge, incomingEdge->getFrom()->asBlock()->getNumber(), incomingEdge->getTo()->asBlock()->getNumber()); diagnostic("\tassuming it should be ->%d\n", entryBlock->getNumber()); + TR_ASSERT_FATAL(newHeader, "New header must have been set by now"); diagnostic("\tredirecting to ->%d\n", newHeader->getNumber()); }