aboutsummaryrefslogtreecommitdiff
path: root/src/all_types.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-01-04 23:21:33 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-01-04 23:21:33 -0500
commitc32a060d4fd432002d32ff17a4cf9ae491cddfc0 (patch)
treee7754a644be63c3922d68b1bc67b6c2e5cf424d9 /src/all_types.hpp
parent664b41af65d3c9bbc8e09ffcaa91d404fe87d7a0 (diff)
downloadzig-c32a060d4fd432002d32ff17a4cf9ae491cddfc0.tar.gz
zig-c32a060d4fd432002d32ff17a4cf9ae491cddfc0.zip
IR: add unreachable code compiler error
Diffstat (limited to 'src/all_types.hpp')
-rw-r--r--src/all_types.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp
index f9d79e9dff..c084fd31a1 100644
--- a/src/all_types.hpp
+++ b/src/all_types.hpp
@@ -1494,6 +1494,8 @@ struct IrInstruction {
size_t ref_count;
IrInstruction *other;
IrBasicBlock *owner_bb;
+ // true if this instruction was generated by zig and not from user code
+ bool is_gen;
};
struct IrInstructionCondBr {