mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 14:41:06 +01:00
Update toolchain/check/cpp/generate_ast.cpp
Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
co-authored by
Jon Ross-Perkins
parent
2d9c34e087
commit
bf8c94f0f9
@@ -468,6 +468,7 @@ auto CarbonExternalASTSource::FindExternalVisibleDeclsByName(
|
||||
}
|
||||
|
||||
// Map the found Carbon entity to a Clang NamedDecl.
|
||||
// Use the key to reach the owned, mutable copy of decl_context.
|
||||
auto* clang_decl = MapInstIdToClangDecl(*decl_context_inst_id.key(), result);
|
||||
if (!clang_decl) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user