aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-02-20 19:56:07 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-02-20 19:56:07 -0500
commit4709fe1176ce88a35e877622dc977948846a3a43 (patch)
tree89c8a5e0c2b1d6ce4d34ef6e3cc6d474289d30d1 /src/analyze.cpp
parentc4ee37f5067e7dd2c017df1fd6c57c1fad92cf85 (diff)
downloadzig-4709fe1176ce88a35e877622dc977948846a3a43.tar.gz
zig-4709fe1176ce88a35e877622dc977948846a3a43.zip
more robust detection of types that failed to resolve
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}