Skip to content

Commit

Permalink
Merge pull request #3031 from yanluo7/condy_fix
Browse files Browse the repository at this point in the history
Ensure staticName() symbols represent static fields
  • Loading branch information
0xdaryl authored Oct 6, 2018
2 parents bd633e4 + 2522870 commit e800d76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/optimizer/OMRValuePropagation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7923,7 +7923,7 @@ void OMR::ValuePropagation::doDelayedTransformations()
bool recognizedStatic = false;

if ((origFirst->getOpCodeValue() == TR::aload) &&
origFirst->getSymbol()->isStatic())
origFirst->getSymbol()->isStaticField())
{
int32_t staticNameLen = -1;
char *staticName = NULL;
Expand Down
2 changes: 1 addition & 1 deletion compiler/optimizer/VPHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ TR::Node *constrainIaload(OMR::ValuePropagation *vp, TR::Node *node)
int32_t fieldNameLen = -1;
char *fieldName = NULL;
if (underlyingArray && underlyingArray->getOpCode().hasSymbolReference() &&
(underlyingArray->getSymbolReference()->getSymbol()->isStatic() ||
(underlyingArray->getSymbolReference()->getSymbol()->isStaticField() ||
underlyingArray->getSymbolReference()->getSymbol()->isShadow()))
{
if (underlyingArray->getSymbolReference()->getSymbol()->isShadow())
Expand Down

0 comments on commit e800d76

Please sign in to comment.