diff options
author | Hans Wennborg <hans@chromium.org> | 2022-04-08 15:54:09 +0200 |
---|---|---|
committer | Hans Wennborg <hans@chromium.org> | 2022-04-11 16:23:01 +0200 |
commit | 40ad6670138ab8130a426432b0e94544b5e03642 (patch) | |
tree | 1529ba5ab47c22bb383431e60171ac21c90d3a2a /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | |
parent | f018a5f6e0d1ac20d9cb499be5c3a8990b272d7d (diff) | |
download | llvm-40ad6670138ab8130a426432b0e94544b5e03642.zip llvm-40ad6670138ab8130a426432b0e94544b5e03642.tar.gz llvm-40ad6670138ab8130a426432b0e94544b5e03642.tar.bz2 |
[dllexport] odr-use constexpr default args for constructor closures
InstantiateDefaultCtorDefaultArgs() is supposed to mark default
constructor args as odr-used, since those args will be used when
emitting the constructor closure.
However, constexpr vars were not getting odr-used since
DoMarkVarDeclReferenced() defers them in MaybeODRUseExprs, and the code
was calling CleanupVarDeclMarking() which discarded those uses instead
of processing them.
(This came up in Chromium, crbug.com/1312086)
Differential revision: https://reviews.llvm.org/D123405
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions