diff options
author | jijjijj <realjijjijj@gmail.com> | 2024-12-12 04:38:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 09:38:47 +0800 |
commit | 9f1e9f682d0a85ea013ccbce6a3ec4ac1be83356 (patch) | |
tree | ab5ac66962bae675f2b53b574b4fa432f7a3f93d /llvm/tools/llvm-profdata/llvm-profdata.cpp | |
parent | f33e2369051e13a54a05dd361d89c1ba77f4f593 (diff) | |
download | llvm-9f1e9f682d0a85ea013ccbce6a3ec4ac1be83356.zip llvm-9f1e9f682d0a85ea013ccbce6a3ec4ac1be83356.tar.gz llvm-9f1e9f682d0a85ea013ccbce6a3ec4ac1be83356.tar.bz2 |
[C++20][modules] Fix std::initializer_list recognition if it's exported out of a module (#118537)
If the std::initializer_list is exported out of module, its
`DeclContext` is not a namespace as `Sema::isStdInitializerList`
expects, but an `Decl::Kind::Export` and only its parent is a namespace.
So this commit makes `Sema::isStdInitializerList` account for that.
I'm really new to clang so I'm not 100% sure that was the issue, it
seems so and it fixes compilation. Also I probably need to add tests but
I'd like someone to approve the idea first.
Fixes https://github.com/llvm/llvm-project/issues/118218
Diffstat (limited to 'llvm/tools/llvm-profdata/llvm-profdata.cpp')
0 files changed, 0 insertions, 0 deletions