forked from OSchip/llvm-project
[OpenMP] Use nullptr instead of NULL (NFC)
Identified with modernize-use-nullptr.
This commit is contained in:
parent
49fdee13c1
commit
780f8a0051
|
@ -2877,7 +2877,7 @@ CallInst *OpenMPIRBuilder::createOMPInteropInit(
|
|||
Constant *SrcLocStr = getOrCreateSrcLocStr(Loc, SrcLocStrSize);
|
||||
Value *Ident = getOrCreateIdent(SrcLocStr, SrcLocStrSize);
|
||||
Value *ThreadId = getOrCreateThreadID(Ident);
|
||||
if (Device == NULL)
|
||||
if (Device == nullptr)
|
||||
Device = ConstantInt::get(Int32, -1);
|
||||
Constant *InteropTypeVal = ConstantInt::get(Int64, (int)InteropType);
|
||||
if (NumDependences == nullptr) {
|
||||
|
@ -2905,7 +2905,7 @@ CallInst *OpenMPIRBuilder::createOMPInteropDestroy(
|
|||
Constant *SrcLocStr = getOrCreateSrcLocStr(Loc, SrcLocStrSize);
|
||||
Value *Ident = getOrCreateIdent(SrcLocStr, SrcLocStrSize);
|
||||
Value *ThreadId = getOrCreateThreadID(Ident);
|
||||
if (Device == NULL)
|
||||
if (Device == nullptr)
|
||||
Device = ConstantInt::get(Int32, -1);
|
||||
if (NumDependences == nullptr) {
|
||||
NumDependences = ConstantInt::get(Int32, 0);
|
||||
|
@ -2933,7 +2933,7 @@ CallInst *OpenMPIRBuilder::createOMPInteropUse(const LocationDescription &Loc,
|
|||
Constant *SrcLocStr = getOrCreateSrcLocStr(Loc, SrcLocStrSize);
|
||||
Value *Ident = getOrCreateIdent(SrcLocStr, SrcLocStrSize);
|
||||
Value *ThreadId = getOrCreateThreadID(Ident);
|
||||
if (Device == NULL)
|
||||
if (Device == nullptr)
|
||||
Device = ConstantInt::get(Int32, -1);
|
||||
if (NumDependences == nullptr) {
|
||||
NumDependences = ConstantInt::get(Int32, 0);
|
||||
|
|
Loading…
Reference in New Issue