aboutsummaryrefslogtreecommitdiff
path: root/src/all_types.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-02-19 15:27:10 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-02-19 15:27:10 -0500
commit1034af40f96ef6c926f8a4e41bee19c59b311ed7 (patch)
tree45fbc3a0db27f3c8cf990e58e770d19e0c30f3c4 /src/all_types.hpp
parent400006bbe790f2173fd6e40d80608691a95b437e (diff)
parent91989e70ba68e3543acffef079d97c9416b5259c (diff)
downloadzig-1034af40f96ef6c926f8a4e41bee19c59b311ed7.tar.gz
zig-1034af40f96ef6c926f8a4e41bee19c59b311ed7.zip
Merge branch 'slice-deref-failure' of https://github.com/matthew-mcallister/zig into matthew-mcallister-slice-deref-failure
Diffstat (limited to 'src/all_types.hpp')
-rw-r--r--src/all_types.hpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp
index 5bac44f9da..2a359fa49b 100644
--- a/src/all_types.hpp
+++ b/src/all_types.hpp
@@ -2105,6 +2105,11 @@ struct IrBasicBlock {
IrInstruction *must_be_comptime_source_instr;
};
+enum LVal {
+ LValNone,
+ LValPtr,
+};
+
// These instructions are in transition to having "pass 1" instructions
// and "pass 2" instructions. The pass 1 instructions are suffixed with Src
// and pass 2 are suffixed with Gen.
@@ -2368,6 +2373,7 @@ struct IrInstructionUnOp {
IrUnOp op_id;
IrInstruction *value;
+ LVal lval;
};
enum IrBinOp {
@@ -3104,11 +3110,6 @@ struct IrInstructionTypeName {
IrInstruction *type_value;
};
-enum LVal {
- LValNone,
- LValPtr,
-};
-
struct IrInstructionDeclRef {
IrInstruction base;