diff --git a/runtime/compiler/env/j9method.cpp b/runtime/compiler/env/j9method.cpp index 03615acc8bb..a0870c1819e 100644 --- a/runtime/compiler/env/j9method.cpp +++ b/runtime/compiler/env/j9method.cpp @@ -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(); } diff --git a/runtime/compiler/x/codegen/J9TreeEvaluator.cpp b/runtime/compiler/x/codegen/J9TreeEvaluator.cpp index 459b08a95ca..df756ec0fba 100644 --- a/runtime/compiler/x/codegen/J9TreeEvaluator.cpp +++ b/runtime/compiler/x/codegen/J9TreeEvaluator.cpp @@ -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();