aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-12-19 01:19:49 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-12-19 01:19:49 -0500
commitc627f9ea18b5f194860c6bf3730f3f0407c224f2 (patch)
tree63b2d0386cd6302707a63220f3ded913a0383542 /src/ir.cpp
parent1fdebc1dc4881a00766f7c2b4b2d8ee6ad6e79b6 (diff)
downloadzig-c627f9ea18b5f194860c6bf3730f3f0407c224f2.tar.gz
zig-c627f9ea18b5f194860c6bf3730f3f0407c224f2.zip
wip bring back export keyword
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 81b64a318d..78f7c25dca 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -5066,7 +5066,7 @@ static IrInstruction *ir_gen_var_decl(IrBuilder *irb, Scope *scope, AstNode *nod
bool is_const = variable_declaration->is_const;
bool is_extern = variable_declaration->is_extern;
IrInstruction *is_comptime = ir_build_const_bool(irb, scope, node,
- ir_should_inline(irb->exec, scope) || variable_declaration->is_inline);
+ ir_should_inline(irb->exec, scope) || variable_declaration->is_comptime);
VariableTableEntry *var = ir_create_var(irb, node, scope, variable_declaration->symbol,
is_const, is_const, is_shadowable, is_comptime);
// we detect IrInstructionIdDeclVar in gen_block to make sure the next node