[llvm] AMDGPU: Fix copy of Triple (PR #184594)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 4 03:50:13 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Matt Arsenault (arsenm)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/184594.diff
1 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp (+1-1)
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
index 865770031bb06..428e4cfdd9a25 100644
--- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
@@ -1135,7 +1135,7 @@ std::string AMDGPUTargetID::toString() const {
std::string StringRep;
raw_string_ostream StreamRep(StringRep);
- auto TargetTriple = STI.getTargetTriple();
+ const Triple &TargetTriple = STI.getTargetTriple();
auto Version = getIsaVersion(STI.getCPU());
StreamRep << TargetTriple.getArchName() << '-' << TargetTriple.getVendorName()
``````````
</details>
https://github.com/llvm/llvm-project/pull/184594
More information about the llvm-commits
mailing list