mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 19:35:54 +00:00
Fix more instances of -Wsentinel on Windows with s/NULL/nullptr/
Follow up to r221940, where I must not have caught em all. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222481 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d12434058d
commit
9c390888f7
@ -1642,7 +1642,7 @@ SDValue AArch64TargetLowering::LowerFSINCOS(SDValue Op,
|
||||
(ArgVT == MVT::f64) ? "__sincos_stret" : "__sincosf_stret";
|
||||
SDValue Callee = DAG.getExternalSymbol(LibcallName, getPointerTy());
|
||||
|
||||
StructType *RetTy = StructType::get(ArgTy, ArgTy, NULL);
|
||||
StructType *RetTy = StructType::get(ArgTy, ArgTy, nullptr);
|
||||
TargetLowering::CallLoweringInfo CLI(DAG);
|
||||
CLI.setDebugLoc(dl).setChain(DAG.getEntryNode())
|
||||
.setCallee(CallingConv::Fast, RetTy, Callee, std::move(Args), 0);
|
||||
|
@ -6289,7 +6289,7 @@ SDValue ARMTargetLowering::LowerFSINCOS(SDValue Op, SelectionDAG &DAG) const {
|
||||
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
|
||||
|
||||
// Pair of floats / doubles used to pass the result.
|
||||
StructType *RetTy = StructType::get(ArgTy, ArgTy, NULL);
|
||||
StructType *RetTy = StructType::get(ArgTy, ArgTy, nullptr);
|
||||
|
||||
// Create stack object for sret.
|
||||
const uint64_t ByteSize = TLI.getDataLayout()->getTypeAllocSize(RetTy);
|
||||
@ -10786,7 +10786,7 @@ SDValue ARMTargetLowering::LowerDivRem(SDValue Op, SelectionDAG &DAG) const {
|
||||
SDValue Callee = DAG.getExternalSymbol(getLibcallName(LC),
|
||||
getPointerTy());
|
||||
|
||||
Type *RetTy = (Type*)StructType::get(Ty, Ty, NULL);
|
||||
Type *RetTy = (Type*)StructType::get(Ty, Ty, nullptr);
|
||||
|
||||
SDLoc dl(Op);
|
||||
TargetLowering::CallLoweringInfo CLI(DAG);
|
||||
|
@ -403,7 +403,7 @@ static bool fixupFPReturnAndCall
|
||||
Attribute::ReadNone);
|
||||
A = A.addAttribute(C, AttributeSet::FunctionIndex,
|
||||
Attribute::NoInline);
|
||||
Value *F = (M->getOrInsertFunction(Name, A, MyVoid, T, NULL));
|
||||
Value *F = (M->getOrInsertFunction(Name, A, MyVoid, T, nullptr));
|
||||
CallInst::Create(F, Params, "", &Inst );
|
||||
} else if (const CallInst *CI = dyn_cast<CallInst>(I)) {
|
||||
const Value* V = CI->getCalledValue();
|
||||
|
@ -19116,7 +19116,7 @@ static SDValue LowerFSINCOS(SDValue Op, const X86Subtarget *Subtarget,
|
||||
SDValue Callee = DAG.getExternalSymbol(LibcallName, TLI.getPointerTy());
|
||||
|
||||
Type *RetTy = isF64
|
||||
? (Type*)StructType::get(ArgTy, ArgTy, NULL)
|
||||
? (Type*)StructType::get(ArgTy, ArgTy, nullptr)
|
||||
: (Type*)VectorType::get(ArgTy, 4);
|
||||
|
||||
TargetLowering::CallLoweringInfo CLI(DAG);
|
||||
|
Loading…
x
Reference in New Issue
Block a user