From 391cb7934419836a6efae57cc0a063557893453c Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 11 Mar 2017 12:56:02 +0000 Subject: [PATCH] Fix -Wsentinel warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297560 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineOutliner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/MachineOutliner.cpp b/lib/CodeGen/MachineOutliner.cpp index 8b950580061..a3ca27645f7 100644 --- a/lib/CodeGen/MachineOutliner.cpp +++ b/lib/CodeGen/MachineOutliner.cpp @@ -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( - 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 -- 2.11.0