[clang] [llvm] [PowerPC][clang] Fix triple constructor ambiguity causing "unknown" target triple on AIX (PR #147488)
Tony Varghese via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 8 02:47:57 PDT 2025
================
@@ -55,7 +55,7 @@ static std::string updateTripleOSVersion(std::string TargetTripleString) {
// On AIX, the AIX version and release should be that of the current host
// unless if the version has already been specified.
if (Triple(LLVM_HOST_TRIPLE).getOS() == Triple::AIX) {
- Triple TT(std::move(TargetTripleString));
+ Triple TT{Twine(TargetTripleString)};
----------------
tonykuttai wrote:
yes. Made that change. was biased towards using `twine` initially.
https://github.com/llvm/llvm-project/pull/147488
More information about the llvm-commits
mailing list