Skip to content

Commit

Permalink
Merge pull request #18266 from dylanjtuttle/pointerArith
Browse files Browse the repository at this point in the history
Fix comparison of non-pointer to NULL
  • Loading branch information
hzongaro authored Nov 11, 2023
2 parents 881ab73 + d14a942 commit bf1f4dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/compiler/p/codegen/J9CodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ J9::Power::CodeGenerator::insertPrefetchIfNecessary(TR::Node *node, TR::Register
generateTrg1MemInstruction(self(), TR::InstOpCode::lwz, node, temp3Reg, TR::MemoryReference::createWithDisplacement(self(), pointerReg, (int32_t)(TR::Compiler->om.sizeofReferenceField()*2), 4));
}

if (comp->getOptions()->getHeapBase() != NULL)
if (comp->getOptions()->getHeapBase() != 0)
{
loadAddressConstant(self(), comp->compileRelocatableCode(), node, (intptr_t)(comp->getOptions()->getHeapBase()), tempReg);
generateTrg1Src2Instruction(self(), TR::InstOpCode::cmpl4, node, condReg, temp3Reg, tempReg);
Expand Down

0 comments on commit bf1f4dc

Please sign in to comment.