llvm-project
85e76ec5 - [Driver] Treat -O4 as -O3 in clang::getOptimizationLevel, which is called when building LTO link command (#216450)

Commit
5 days ago
[Driver] Treat -O4 as -O3 in clang::getOptimizationLevel, which is called when building LTO link command (#216450) #169762 (commit e60a69ab8a9e7) replaced the -O option handling in `tools::addLTOOptions` with `getOptimizationLevel()`, but `getOptimizationLevel` doesn't expect -O4, while `addLTOOptions` used to accept and without diagnostics. Teach `getOptimizationLevel` about -O4 and don't diagnose to revert to the old behavior. --------- Co-authored-by: Wael Yehia <wyehia@ca.ibm.com>
Author
Parents
Loading