Use nullptr (NFC)
authorXinliang David Li <davidxl@google.com>
Tue, 1 Dec 2015 19:47:32 +0000 (19:47 +0000)
committerXinliang David Li <davidxl@google.com>
Tue, 1 Dec 2015 19:47:32 +0000 (19:47 +0000)
llvm-svn: 254447

llvm/lib/ProfileData/InstrProf.cpp
llvm/unittests/ProfileData/InstrProfTest.cpp

index d08ec9d..530be8a 100644 (file)
@@ -207,7 +207,7 @@ ValueProfData::serializeFrom(const InstrProfRecord &Record) {
   InstrProfRecordClosure.Record = &Record;
 
   std::unique_ptr<ValueProfData> VPD(
-      serializeValueProfDataFrom(&InstrProfRecordClosure, 0));
+      serializeValueProfDataFrom(&InstrProfRecordClosure, nullptr));
   return VPD;
 }
 
index d50944f..2f3adb6 100644 (file)
@@ -409,7 +409,7 @@ TEST_F(InstrProfTest, runtime_value_prof_data_read_write) {
   initializeValueProfRuntimeRecord(&RTRecord, &NumValueSites[0],
                                    &ValueProfNodes[0]);
 
-  ValueProfData *VPData = serializeValueProfDataFromRT(&RTRecord, 0);
+  ValueProfData *VPData = serializeValueProfDataFromRT(&RTRecord, nullptr);
 
   InstrProfRecord Record("caller", 0x1234, {1ULL << 31, 2});