Skip to content

Commit

Permalink
Changes some uses of nullptr to NULL
Browse files Browse the repository at this point in the history
nullptr is not supported by some supported compilers. So some uses of
nullptr are now changed to use NULL instead.

Signed-off-by: jimmyk <[email protected]>
  • Loading branch information
IBMJimmyk committed Oct 4, 2024
1 parent bfc3936 commit fe56b6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/compiler/env/j9method.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5546,7 +5546,7 @@ TR_J9MethodBase::isUnsafeCAS(TR::Compilation * c)
* The TR::Compilation parameter "c" is sometimes null. But, it is needed to perform a platform target check.
* So, if it is null, this code goes and gets comp.
*/
if (nullptr == c)
if (NULL == c)
{
c = TR::comp();
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/compiler/x/codegen/J9TreeEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9533,7 +9533,7 @@ static TR::Register* inlineCompareAndSwapObjectNative(TR::Node* node, TR::CodeGe
TR::Register* offset = cg->evaluate(offsetNode);
TR::Register* oldValue = cg->evaluate(oldValueNode);
TR::Register* newValue = cg->evaluate(newValueNode);
TR::Register* result = isExchange ? nullptr : cg->allocateRegister();
TR::Register* result = isExchange ? NULL : cg->allocateRegister();
TR::Register* EAX = cg->allocateRegister();
TR::Register* tmp = cg->allocateRegister();

Expand Down

0 comments on commit fe56b6f

Please sign in to comment.