Files
Anthony Latsis a3a9d3f1fd DriverTool: Adjust to "[llc] Add -mtune option (#186998)"
```
lib/DriverTool/swift_llvm_opt_main.cpp:210:3: error: no matching function for call to 'setFunctionAttributes'
  210 |   llvm::codegen::setFunctionAttributes(CPUStr, FeaturesStr, *M);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

As part of the llvm-project change, this, the parameters of
`llvm::codegen::setFunctionAttributes` were reordered, and a new
optional `TuneCPU` parameter was added. swift-llvm-opt has no tune-cpu
concept, so the fix simply reorders the arguments.

See https://github.com/llvm/llvm-project/commit/69cd746bd2f1056791dd21f26d0e44a99d90bb52 (https://github.com/llvm/llvm-project/pull/186998).

Assisted-by: Claude Code
2026-07-15 03:43:13 +01:00
..