From 4709fe1176ce88a35e877622dc977948846a3a43 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 20 Feb 2017 19:56:07 -0500 Subject: more robust detection of types that failed to resolve --- src/analyze.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index 30f4d44cac..398eb7ca58 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -1120,6 +1120,8 @@ bool type_is_invalid(TypeTableEntry *type_entry) { return type_entry->data.enumeration.is_invalid; case TypeTableEntryIdUnion: return type_entry->data.unionation.is_invalid; + case TypeTableEntryIdTypeDecl: + return type_is_invalid(type_entry->data.type_decl.canonical_type); default: return false; } -- cgit v1.2.3