================
@@ -2205,8 +2205,7 @@ bool SampleProfileLoader::runOnModule(Module &M, 
ModuleAnalysisManager &AM,
 
   // Account for cold calls not inlined....
   if (!FunctionSamples::ProfileIsCS)
-    for (const std::pair<Function *, NotInlinedProfileInfo> &pair :
-         notInlinedCallInfo)
+    for (const auto &pair : notInlinedCallInfo)
----------------
kazutakahirata wrote:

Could we use structured bindings here as well?

```cpp
for (const auto &[I, Info] : UPB->second.Insts)
  Insts.emplace_back(I, Info);
```


https://github.com/llvm/llvm-project/pull/221853
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to