================
@@ -1504,7 +1507,9 @@
PdbAstBuilderClang::ToCompilerDeclContext(clang::DeclContext *context) {
}
clang::Decl *PdbAstBuilderClang::FromCompilerDecl(CompilerDecl decl) {
- return ClangUtil::GetDecl(decl);
+ if (decl.GetTypeSystem() != nullptr)
----------------
gv wrote:
Why? Right now `FromCompilerDecl` is public but only called from
`PdbAstBuilderClang` and `PdbAstBuilderClang` doesn't use other type systems
than `TypeSystemClang`. And if anyone decides to add other type systems here
they will be caught by an assertion in `ClangUtil::GetDecl` and then they can
decide how better to deal with that
https://github.com/llvm/llvm-project/pull/166455
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits