Unverified Commit b0f10a1d authored by Chuanqi Xu's avatar Chuanqi Xu Committed by GitHub
Browse files

[C++20] [Modules] Don't generate the defintition for non-const available...

[C++20] [Modules] Don't generate the defintition for non-const available external variables (#93530)

Close https://github.com/llvm/llvm-project/issues/93497

The root cause of the problem is, we mark the variable from other
modules as constnant in LLVM incorrectly. This patch fixes this problem
by not emitting the defintition for non-const available external
variables. Since the non const available externally variable is not
helpful to the optimization.
parent 3613b268
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment