Skip to content

Commit

Permalink
Merge pull request #10848 from Leonardo2718/fix-symreftab-assert
Browse files Browse the repository at this point in the history
(0.23.0) Change TR_ASSERT_FATAL into failCompilation call
  • Loading branch information
andrewcraik committed Oct 9, 2020
2 parents 3bf8762 + b626a76 commit e0505e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions runtime/compiler/compile/J9SymbolReferenceTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -865,11 +865,11 @@ J9::SymbolReferenceTable::findOrCreateShadowSymbol(TR::ResolvedMethodSymbol * ow
containingClass =
owningMethod->definingClassFromCPFieldRef(comp(), cpIndex, isStatic);

TR_ASSERT_FATAL(
containingClass != NULL,
"failed to get defining class of field ref cpIndex=%d in owning method J9Method=%p",
cpIndex,
owningMethod->getNonPersistentIdentifier());
if (containingClass == NULL)
comp()->failCompilation<TR::CompilationException>(
"failed to get defining class of resolved field ref cpIndex=%d in owning method J9Method=%p",
cpIndex,
owningMethod->getNonPersistentIdentifier());

ResolvedFieldShadowKey key(containingClass, offset, type);
TR::SymbolReference *symRef =
Expand Down

0 comments on commit e0505e9

Please sign in to comment.