Skip to content

Commit 26ffeb0

Browse files
committed
machine target triples no longer do the Triple->std::string->Triple roundtrip
llvm/llvm-project#130940
1 parent 7fff30f commit 26ffeb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Driver/CompilerDriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ LogicalResult QuantumDriverMain(const CompilerOptions &options, CompilerOutput &
765765
if (runLLC && (inType == InputType::LLVMIR)) {
766766
TimingScope llcTiming = timing.nest("llc");
767767
// Set data layout before LLVM passes or the default one is used.
768-
std::string targetTriple = llvm::sys::getDefaultTargetTriple();
768+
llvm::Triple targetTriple(llvm::sys::getDefaultTargetTriple());
769769

770770
llvm::InitializeAllTargetInfos();
771771
llvm::InitializeAllTargets();

0 commit comments

Comments
 (0)