diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-07-11 21:37:47 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-07-11 21:37:47 -0400 |
| commit | ce11d6d16cf388ec7abff9680ee3a263185a9986 (patch) | |
| tree | 1176e1ff7c0b9ec94fc124c35922826a305a60fd /src/all_types.hpp | |
| parent | 30c4add85a0f4af727ad7cf8f2134114329d0f07 (diff) | |
| download | zig-ce11d6d16cf388ec7abff9680ee3a263185a9986.tar.gz zig-ce11d6d16cf388ec7abff9680ee3a263185a9986.zip | |
ir: refactor lvalues
Diffstat (limited to 'src/all_types.hpp')
| -rw-r--r-- | src/all_types.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp index 6dcf1894d8..2da0677e1b 100644 --- a/src/all_types.hpp +++ b/src/all_types.hpp @@ -2005,12 +2005,6 @@ struct IrBasicBlock { IrInstruction *must_be_comptime_source_instr; }; -struct LVal { - bool is_ptr; - bool is_const; - bool is_volatile; -}; - enum IrInstructionId { IrInstructionIdInvalid, IrInstructionIdBr, @@ -2972,6 +2966,11 @@ struct IrInstructionTypeName { IrInstruction *type_value; }; +enum LVal { + LValNone, + LValPtr, +}; + struct IrInstructionDeclRef { IrInstruction base; |
