[compiler-rt] [MemProf] Fix incorrect usage of InternalScopedString::appendF in Des… (PR #80574)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 3 18:01:55 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-pgo
Author: Enna1 (Enna1)
<details>
<summary>Changes</summary>
…cribeThread
---
Full diff: https://github.com/llvm/llvm-project/pull/80574.diff
1 Files Affected:
- (modified) compiler-rt/lib/memprof/memprof_descriptions.cpp (+1-1)
``````````diff
diff --git a/compiler-rt/lib/memprof/memprof_descriptions.cpp b/compiler-rt/lib/memprof/memprof_descriptions.cpp
index 48b74b6bc87fb..4fbe2943e6539 100644
--- a/compiler-rt/lib/memprof/memprof_descriptions.cpp
+++ b/compiler-rt/lib/memprof/memprof_descriptions.cpp
@@ -51,7 +51,7 @@ void DescribeThread(MemprofThreadContext *context) {
InternalScopedString str;
str.AppendF("Thread %s", MemprofThreadIdAndName(context).c_str());
if (context->parent_tid == kInvalidTid) {
- str.AppendF(" created by unknown thread\n");
+ str.Append(" created by unknown thread\n");
Printf("%s", str.data());
return;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/80574
More information about the llvm-commits
mailing list