[clang] [flang] [llvm] [mlir] [TargetRegistry] Accept Triple in createTargetMachine() (NFC) (PR #130940)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 12 04:36:59 PDT 2025


================
@@ -93,7 +93,7 @@ LLVMState::LLVMState(std::unique_ptr<const TargetMachine> TM,
 std::unique_ptr<TargetMachine> LLVMState::createTargetMachine() const {
   return std::unique_ptr<TargetMachine>(
       TheTargetMachine->getTarget().createTargetMachine(
-          TheTargetMachine->getTargetTriple().normalize(),
+          Triple(TheTargetMachine->getTargetTriple().normalize()),
----------------
nikic wrote:

I tried that initially, but this one seems to be actually important (there are test failures otherwise).

https://github.com/llvm/llvm-project/pull/130940


More information about the cfe-commits mailing list