[clang] [flang] [llvm] [mlir] [TargetRegistry] Accept Triple in createTargetMachine() (NFC) (PR #130940)
Yingwei Zheng via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 12 04:35:24 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()),
----------------
dtcxzyw wrote:
```suggestion
TheTargetMachine->getTargetTriple(),
```
https://github.com/llvm/llvm-project/pull/130940
More information about the cfe-commits
mailing list