aboutsummaryrefslogtreecommitdiff
path: root/src/all_types.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-06-18 15:01:42 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-06-18 15:01:42 -0400
commit5d705fc6e35e75a604d3dbbb377ab01bf2b2b575 (patch)
treea107156cf3a48f1dace171fca865c34ae032f8f2 /src/all_types.hpp
parent1ca90b585692c9611c64412844d2f3a7b3e11340 (diff)
downloadzig-5d705fc6e35e75a604d3dbbb377ab01bf2b2b575.tar.gz
zig-5d705fc6e35e75a604d3dbbb377ab01bf2b2b575.zip
remove error set casting syntax. add `@errSetCast`
See #1061
Diffstat (limited to 'src/all_types.hpp')
-rw-r--r--src/all_types.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp
index d94dfa0fcb..732af239e2 100644
--- a/src/all_types.hpp
+++ b/src/all_types.hpp
@@ -1359,6 +1359,7 @@ enum BuiltinFnId {
BuiltinFnIdTruncate,
BuiltinFnIdIntCast,
BuiltinFnIdFloatCast,
+ BuiltinFnIdErrSetCast,
BuiltinFnIdIntToFloat,
BuiltinFnIdFloatToInt,
BuiltinFnIdBoolToInt,
@@ -2121,6 +2122,7 @@ enum IrInstructionId {
IrInstructionIdMergeErrRetTraces,
IrInstructionIdMarkErrRetTracePtr,
IrInstructionIdSqrt,
+ IrInstructionIdErrSetCast,
};
struct IrInstruction {
@@ -2656,6 +2658,13 @@ struct IrInstructionFloatCast {
IrInstruction *target;
};
+struct IrInstructionErrSetCast {
+ IrInstruction base;
+
+ IrInstruction *dest_type;
+ IrInstruction *target;
+};
+
struct IrInstructionIntToFloat {
IrInstruction base;