Fix -Wsentinel warning

llvm-svn: 297560
This commit is contained in:
Simon Pilgrim 2017-03-11 12:56:02 +00:00
parent d1ec5d54cf
commit fa97699d09
1 changed files with 1 additions and 1 deletions

View File

@ -1252,7 +1252,7 @@ MachineOutliner::createOutlinedFunction(Module &M, const OutlinedFunction &OF,
// Create the function using an IR-level function.
LLVMContext &C = M.getContext();
Function *F = dyn_cast<Function>(
M.getOrInsertFunction(NameStream.str(), Type::getVoidTy(C), NULL));
M.getOrInsertFunction(NameStream.str(), Type::getVoidTy(C), nullptr));
assert(F && "Function was null!");
// NOTE: If this is linkonceodr, then we can take advantage of linker deduping