aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorVexu <git@vexu.eu>2020-07-17 20:16:23 +0300
committerVeikka Tuominen <git@vexu.eu>2020-07-18 16:45:07 +0300
commit596ca6cf70cf43c27e31bbcfc36bcdc70b13897a (patch)
tree1f6915d289cf77ac70d7a7f23ca7f2b6f73e4aa6 /src/ir.cpp
parent78962eeeda07d613ebdfd239082268a6702c19db (diff)
downloadzig-596ca6cf70cf43c27e31bbcfc36bcdc70b13897a.tar.gz
zig-596ca6cf70cf43c27e31bbcfc36bcdc70b13897a.zip
allow non-pointer extern opaque variables
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 88e111ccb5..11ff7746e7 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -18505,7 +18505,7 @@ static IrInstGen *ir_analyze_instruction_decl_var(IrAnalyze *ira, IrInstSrcDeclV
if (decl_var_instruction->var_type != nullptr) {
var_type = decl_var_instruction->var_type->child;
ZigType *proposed_type = ir_resolve_type(ira, var_type);
- explicit_type = validate_var_type(ira->codegen, var_type->base.source_node, proposed_type);
+ explicit_type = validate_var_type(ira->codegen, &var->decl_node->data.variable_declaration, proposed_type);
if (type_is_invalid(explicit_type)) {
var->var_type = ira->codegen->builtin_types.entry_invalid;
return ira->codegen->invalid_inst_gen;