[llvm] r297560 - Fix -Wsentinel warning
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 11 04:56:03 PST 2017
Author: rksimon
Date: Sat Mar 11 06:56:02 2017
New Revision: 297560
URL: http://llvm.org/viewvc/llvm-project?rev=297560&view=rev
Log:
Fix -Wsentinel warning
Modified:
llvm/trunk/lib/CodeGen/MachineOutliner.cpp
Modified: llvm/trunk/lib/CodeGen/MachineOutliner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineOutliner.cpp?rev=297560&r1=297559&r2=297560&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineOutliner.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineOutliner.cpp Sat Mar 11 06:56:02 2017
@@ -1252,7 +1252,7 @@ MachineOutliner::createOutlinedFunction(
// 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
More information about the llvm-commits
mailing list