[clang] Simplify updating CodeGenOptions - #23214
Conversation
This works now since upstream commit llvm/llvm-project@ddeab07 changed the intentional copy in CodeGeneratorImpl to a reference with a single copy of the CodeGenOptions stored in the CompilerInvocation. This reverts the downstream modifications from commit 0d60867, allowing to drop one more Clang patch.
|
This very likely renders |
No, it doesn't: there is a single |
|
Assuming you checked, then LGTM! |
Yes, I checked by inspecting the value of |
|
That's a silent regression introduced along the upgrades I guess. It is a pity that rootbench is good state to catch that and we never implemented adequate cling test... |
Not a recent one, I can reproduce also with 6.26. To be honest, I would not be super surprised if this oversight is there since the feature was introduced. To be clear, the optimization level is respected for the majority of the compilation, such as the passes, but not (always) for generating the IR. |
This works now since upstream commit llvm/llvm-project@ddeab07 changed the intentional copy in
CodeGeneratorImplto a reference with a single copy of theCodeGenOptionsstored in theCompilerInvocation.This reverts the downstream modifications from commit 0d60867, allowing to drop one more Clang patch.