aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2020-09-30 10:48:00 -0700
committerRichard Smith <richard@metafoo.co.uk>2020-09-30 10:49:50 -0700
commit892df30a7f344b6cb9995710efbc94bb25cfb95b (patch)
tree24ecb777170f2fcb5742f8f05dd4369132407496 /clang/lib/Frontend/CompilerInvocation.cpp
parent700e63293eea4a23440f300b1e9125ca2e80c6e9 (diff)
downloadllvm-892df30a7f344b6cb9995710efbc94bb25cfb95b.zip
llvm-892df30a7f344b6cb9995710efbc94bb25cfb95b.tar.gz
llvm-892df30a7f344b6cb9995710efbc94bb25cfb95b.tar.bz2
Fix interaction of `constinit` and `weak`.
We previously took a shortcut and said that weak variables never have constant initializers (because those initializers are never correct to use outside the variable). We now say that weak variables can have constant initializers, but are never usable in constant expressions.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions