Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix -Wnonnull warnings with GCC 11 #7403

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/infra/InterferenceGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion compiler/optimizer/CopyPropagation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
1 change: 1 addition & 0 deletions compiler/optimizer/Structure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down