diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-02-20 19:56:07 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-02-20 19:56:07 -0500 |
| commit | 4709fe1176ce88a35e877622dc977948846a3a43 (patch) | |
| tree | 89c8a5e0c2b1d6ce4d34ef6e3cc6d474289d30d1 /src/analyze.cpp | |
| parent | c4ee37f5067e7dd2c017df1fd6c57c1fad92cf85 (diff) | |
| download | zig-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.cpp | 2 |
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; } |
