DriverTool, IRGen: Adjust uses of llvm::Module::setTargetTriple (parameter type changed)

Per 979c275097a642e9b96c6b0a12f013c831af3a6e (llvm-project).
This commit is contained in:
Anthony Latsis
2025-04-21 07:27:38 +01:00
parent 66a6df9a44
commit f0236c262f
3 changed files with 5 additions and 4 deletions

View File

@@ -174,7 +174,8 @@ int swift_llvm_opt_main(ArrayRef<const char *> argv, void *MainAddr) {
// If we are supposed to override the target triple, do so now.
if (!options.TargetTriple.empty())
M->setTargetTriple(llvm::Triple::normalize(options.TargetTriple));
M->setTargetTriple(
llvm::Triple(llvm::Triple::normalize(options.TargetTriple)));
// Figure out what stream we are supposed to write to...
std::unique_ptr<llvm::ToolOutputFile> Out;