Skip to content

Commit

Permalink
Merge pull request #7346 from 0xdaryl/srmassert
Browse files Browse the repository at this point in the history
Assert if ScratchRegisterManager is unable to provide a register
  • Loading branch information
dsouzai committed May 23, 2024
2 parents 625d6fb + 1e0a8f1 commit 1814ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/codegen/ScratchRegisterManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ TR::Register *TR_ScratchRegisterManager::findOrCreateScratchRegister(TR_Register

if (_cursor >= _capacity)
{
traceMsg(_cg->comp(), "ERROR: cannot allocate any more scratch registers\n");
TR_ASSERT_FATAL(false, "ERROR: cannot allocate any more scratch registers");
return NULL;
}

Expand Down

0 comments on commit 1814ef7

Please sign in to comment.