Revert "[ProfileData] Fix a warning"
authorDouglas Yung <douglas.yung@sony.com>
Tue, 10 Jan 2023 07:52:06 +0000 (23:52 -0800)
committerDouglas Yung <douglas.yung@sony.com>
Tue, 10 Jan 2023 07:52:06 +0000 (23:52 -0800)
This reverts commit 9f4a9d3f44501fa755eb71fe855e15cf0e59e8b8.

Reverting this change which was a follow-up to 5b72d0e4f5eeb8f90c744cac8e0728cffeca61a9 which is being reverted due to test failures on Mac/Windows.

llvm/lib/ProfileData/SampleProfWriter.cpp

index 25fb97f..e52c7ba 100644 (file)
@@ -125,7 +125,6 @@ std::error_code SampleProfileWriter::writeWithSizeLimitInternal(
   LLVM_DEBUG(dbgs() << "Profile originally has " << OriginalFunctionCount
                     << " functions, reduced to " << ProfileMap.size() << " in "
                     << IterationCount << " iterations\n");
-  (void)OriginalFunctionCount;
   return sampleprof_error::success;
 }