================
@@ -320,6 +321,10 @@ clang::DeclContext
*PdbAstBuilder::GetOrCreateDeclContextForUid(PdbSymUid uid) {
return clang::Decl::castToDeclContext(decl);
}
+CompilerDeclContext PdbAstBuilder::GetOrCreateDeclContextForUid(PdbSymUid uid)
{
+ return m_clang.CreateDeclContext(GetOrCreateClangDeclContextForUid(uid));
----------------
speednoisemovement wrote:
Realized `ToCompilerDeclContext` takes a reference, so we'd have to do a
potentially unsafe deref here. I can't see any reason why it *should* be a
reference, so let me change that in a follow-up and make this change then
https://github.com/llvm/llvm-project/pull/173111
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits