]> granicus.if.org Git - llvm/commitdiff
Fix -Wsentinel warning
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 11 Mar 2017 12:56:02 +0000 (12:56 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 11 Mar 2017 12:56:02 +0000 (12:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297560 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineOutliner.cpp

index 8b95058006103eaeb18cb13ebe06c6d4737e2eca..a3ca27645f76670d08a5a3e956463c77a3eb1066 100644 (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