From 2a2d3273eae791c5c21eb77374f4818c2a76ae1b Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 12 Mar 2020 14:40:13 +0000 Subject: Add `@require` for global variables --- src/ir.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index da0075ec8..867a28259 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -11844,6 +11844,8 @@ void ir_gen_tree(irGen *s) { if (!ir_min_dep_entity(m, e)) { continue; } + + DeclInfo *decl = decl_info_of_entity(e); if (decl == nullptr) { continue; -- cgit v1.2.3