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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254447 91177308-0d34-0410-b5e6-96231b3b80d8

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

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