[PATCH] D106599: [CSSPGO] Fix a typo in SampleContextTracker
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 22 16:45:00 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGab5ac659c81a: [CSSPGO] Fix a typo in SampleContextTracker (authored by hoy).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106599/new/
https://reviews.llvm.org/D106599
Files:
llvm/lib/Transforms/IPO/SampleContextTracker.cpp
Index: llvm/lib/Transforms/IPO/SampleContextTracker.cpp
===================================================================
--- llvm/lib/Transforms/IPO/SampleContextTracker.cpp
+++ llvm/lib/Transforms/IPO/SampleContextTracker.cpp
@@ -433,8 +433,7 @@
if (Name.empty())
Name = PrevDIL->getScope()->getSubprogram()->getName();
S.push_back(
- std::make_pair(FunctionSamples::getCallSiteIdentifier(DIL),
- PrevDIL->getScope()->getSubprogram()->getLinkageName()));
+ std::make_pair(FunctionSamples::getCallSiteIdentifier(DIL), Name));
PrevDIL = DIL;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106599.361031.patch
Type: text/x-patch
Size: 609 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210722/bb28d256/attachment.bin>
More information about the llvm-commits
mailing list