File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -400,11 +400,11 @@ CompilerType ValueObject::MaybeCalculateCompleteType() {
400
400
if (TargetSP target_sp = GetTargetSP ()) {
401
401
if (auto clang_modules_decl_vendor =
402
402
target_sp->GetClangModulesDeclVendor ()) {
403
- if (clang_modules_decl_vendor-> FindDecls ( class_name, false ,
404
- UINT32_MAX, decls) > 0 &&
405
- decls. size () > 0 ) {
406
- CompilerType module_type =
407
- ClangASTContext::GetTypeForDecl (decls .front () );
403
+ ConstString key_cs ( class_name);
404
+ auto types = clang_modules_decl_vendor-> FindTypes (
405
+ key_cs, /* max_matches */ UINT32_MAX);
406
+ if (!types. empty ()) {
407
+ auto module_type = types .front ();
408
408
m_override_type =
409
409
is_pointer_type ? module_type.GetPointerType () : module_type;
410
410
}
You can’t perform that action at this time.
0 commit comments