[PATCH] D132429: [llvm-profdata][NFC] fix warning

Liao Chunyu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 22 23:09:32 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe36a71d87b26: [llvm-profdata][NFC] fix warning (authored by liaolucy).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132429/new/

https://reviews.llvm.org/D132429

Files:
  llvm/lib/ProfileData/SampleProfReader.cpp


Index: llvm/lib/ProfileData/SampleProfReader.cpp
===================================================================
--- llvm/lib/ProfileData/SampleProfReader.cpp
+++ llvm/lib/ProfileData/SampleProfReader.cpp
@@ -138,8 +138,8 @@
   sortFuncProfiles(Profiles, V);
   json::OStream JOS(OS, 2);
   JOS.arrayBegin();
-  for (const auto &[FC, FS] : V)
-    dumpFunctionProfileJson(*FS, JOS, true);
+  for (const auto &F : V)
+    dumpFunctionProfileJson(*F.second, JOS, true);
   JOS.arrayEnd();
 
   // Emit a newline character at the end as json::OStream doesn't emit one.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132429.454701.patch
Type: text/x-patch
Size: 570 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220823/fcb1588a/attachment.bin>


More information about the llvm-commits mailing list