Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emit const variables only once (#13614)
Otherwise they are emitted as internal and we get double-construction and -destruction on the same memory address due to the way we promote internal declarations in KeepLocalGVPass. According to upstream tests, the de-duplication doesn't work on Windows (yet), but I think this problem is severe enough to fix it on the other platforms sooner rather than later. Fixes #13429
- Loading branch information