mirror of
https://github.com/apple/swift.git
synced 2026-09-30 10:17:34 +02:00
```
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