[llvm] r254447 - Use nullptr (NFC)

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 1 11:47:32 PST 2015


Author: davidxl
Date: Tue Dec  1 13:47:32 2015
New Revision: 254447

URL: http://llvm.org/viewvc/llvm-project?rev=254447&view=rev
Log:
Use nullptr (NFC)

Modified:
    llvm/trunk/lib/ProfileData/InstrProf.cpp
    llvm/trunk/unittests/ProfileData/InstrProfTest.cpp

Modified: llvm/trunk/lib/ProfileData/InstrProf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/InstrProf.cpp?rev=254447&r1=254446&r2=254447&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/InstrProf.cpp (original)
+++ llvm/trunk/lib/ProfileData/InstrProf.cpp Tue Dec  1 13:47:32 2015
@@ -207,7 +207,7 @@ ValueProfData::serializeFrom(const Instr
   InstrProfRecordClosure.Record = &Record;
 
   std::unique_ptr<ValueProfData> VPD(
-      serializeValueProfDataFrom(&InstrProfRecordClosure, 0));
+      serializeValueProfDataFrom(&InstrProfRecordClosure, nullptr));
   return VPD;
 }
 

Modified: llvm/trunk/unittests/ProfileData/InstrProfTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ProfileData/InstrProfTest.cpp?rev=254447&r1=254446&r2=254447&view=diff
==============================================================================
--- llvm/trunk/unittests/ProfileData/InstrProfTest.cpp (original)
+++ llvm/trunk/unittests/ProfileData/InstrProfTest.cpp Tue Dec  1 13:47:32 2015
@@ -409,7 +409,7 @@ TEST_F(InstrProfTest, runtime_value_prof
   initializeValueProfRuntimeRecord(&RTRecord, &NumValueSites[0],
                                    &ValueProfNodes[0]);
 
-  ValueProfData *VPData = serializeValueProfDataFromRT(&RTRecord, 0);
+  ValueProfData *VPData = serializeValueProfDataFromRT(&RTRecord, nullptr);
 
   InstrProfRecord Record("caller", 0x1234, {1ULL << 31, 2});
 




More information about the llvm-commits mailing list