aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/Utils.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-05-14 17:53:17 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-05-15 10:29:49 +0800
commit11b059145d177ee287c7ada9864addf8d083c160 (patch)
tree03fc5860408b44c83d5a60b8bc3eff55b6cfc1a3 /llvm/lib/TextAPI/Utils.cpp
parent6642cc60a21f857bddde8ec2c81008a83a54b4d3 (diff)
downloadllvm-11b059145d177ee287c7ada9864addf8d083c160.zip
llvm-11b059145d177ee287c7ada9864addf8d083c160.tar.gz
llvm-11b059145d177ee287c7ada9864addf8d083c160.tar.bz2
[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.
Diffstat (limited to 'llvm/lib/TextAPI/Utils.cpp')
0 files changed, 0 insertions, 0 deletions