[llvm] 2f62c78 - [PowerPC] Fix build error in PPCAsmPrinter.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 7 16:29:10 PDT 2023
Author: Jie Fu
Date: 2023-09-08T07:28:26+08:00
New Revision: 2f62c788620c36a36b71c91c0c8228ad9b394588
URL: https://github.com/llvm/llvm-project/commit/2f62c788620c36a36b71c91c0c8228ad9b394588
DIFF: https://github.com/llvm/llvm-project/commit/2f62c788620c36a36b71c91c0c8228ad9b394588.diff
LOG: [PowerPC] Fix build error in PPCAsmPrinter.cpp (NFC)
/Users/jiefu/llvm-project/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:2753:34: error: cannot initialize a parameter of type 'int64_t' (aka 'long long') with an rvalue of type 'thread::id' (aka '_opaque_pthread_t *')
"_" + llvm::itostr(llvm::this_thread::get_id()) + "_" +
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jiefu/llvm-project/llvm/include/llvm/ADT/StringExtras.h:315:35: note: passing argument to parameter 'X' here
inline std::string itostr(int64_t X) {
^
1 error generated.
Added:
Modified:
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 373be8ea7f58050..3e70c006edd1d77 100644
--- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -2750,7 +2750,7 @@ bool PPCAIXAsmPrinter::doInitialization(Module &M) {
.count();
FormatIndicatorAndUniqueModId =
"clangPidTidTime_" + llvm::itostr(sys::Process::getProcessId()) +
- "_" + llvm::itostr(llvm::this_thread::get_id()) + "_" +
+ "_" + llvm::itostr((int64_t)llvm::this_thread::get_id()) + "_" +
llvm::itostr(CurTime);
}
}
More information about the llvm-commits
mailing list