[all-commits] [llvm/llvm-project] 11b059: [Serialization] Read the initializer for interesti...
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Tue May 14 19:31:03 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 11b059145d177ee287c7ada9864addf8d083c160
https://github.com/llvm/llvm-project/commit/11b059145d177ee287c7ada9864addf8d083c160
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2024-05-15 (Wed, 15 May 2024)
Changed paths:
M clang/lib/Serialization/ASTReaderDecl.cpp
A clang/test/Modules/pr91418.cppm
Log Message:
-----------
[Serialization] Read the initializer for interesting static variables before consuming it
Close https://github.com/llvm/llvm-project/issues/91418
Since we load the variable's initializers lazily, it'd be problematic
if the initializers dependent on each other. So here we try to load the
initializers of static variables to make sure they are passed to code
generator by order. If we read any thing interesting, we would consume
that before emitting the current declaration.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list