diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-02-24 01:38:21 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-02-28 14:51:50 -0500 |
| commit | fba39ff331a84f1a32d076ccbb8b87cd02ea7121 (patch) | |
| tree | 51133625f5bae70a9f3d5991d9f79839ad1ffc68 /src/analyze.cpp | |
| parent | 68dbba212dd7393c90ab0e914dedeac975fa0224 (diff) | |
| download | zig-fba39ff331a84f1a32d076ccbb8b87cd02ea7121.tar.gz zig-fba39ff331a84f1a32d076ccbb8b87cd02ea7121.zip | |
restructuring std.Target for OS version ranges, pass 1
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 9b776da930..ceb232c79d 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -3963,7 +3963,7 @@ static void resolve_decl_var(CodeGen *g, TldVar *tld_var, bool allow_lazy) { // TODO more validation for types that can't be used for export/extern variables ZigType *implicit_type = nullptr; - if (explicit_type != nullptr && explicit_type->id == ZigTypeIdInvalid) { + if (explicit_type != nullptr && type_is_invalid(explicit_type)) { implicit_type = explicit_type; } else if (var_decl->expr) { init_value = analyze_const_value(g, tld_var->base.parent_scope, var_decl->expr, explicit_type, |
