Skip to content

Commit a4f5b2f

Browse files
committed
Use undeprecated triple function
1 parent 3058a57 commit a4f5b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/src/llvm.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ createTargetMachine(llvm::Module *module, std::string proc,
5959
opt.MCOptions.AsmVerbose = true;
6060
opt.MCOptions.PreserveAsmComments = true;
6161
std::unique_ptr<llvm::TargetMachine> machine{target->createTargetMachine(
62-
module->getTargetTriple().str(), proc, features, opt, llvm::Reloc::PIC_,
62+
module->getTargetTriple(), proc, features, opt, llvm::Reloc::PIC_,
6363
std::nullopt,
6464
disableLLVMOpt ? llvm::CodeGenOptLevel::None
6565
: llvm::CodeGenOptLevel::Aggressive)};

0 commit comments

Comments
 (0)