aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 424fd4dfd8..fcaab07e6b 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -12423,7 +12423,6 @@ bool ir_has_side_effects(IrInstruction *instruction) {
case IrInstructionIdCheckSwitchProngs:
case IrInstructionIdSetGlobalAlign:
case IrInstructionIdSetGlobalSection:
- case IrInstructionIdUnwrapErrPayload:
return true;
case IrInstructionIdPhi:
case IrInstructionIdUnOp:
@@ -12492,6 +12491,12 @@ bool ir_has_side_effects(IrInstruction *instruction) {
IrInstructionAsm *asm_instruction = (IrInstructionAsm *)instruction;
return asm_instruction->has_side_effects;
}
+ case IrInstructionIdUnwrapErrPayload:
+ {
+ IrInstructionUnwrapErrPayload *unwrap_err_payload_instruction =
+ (IrInstructionUnwrapErrPayload *)instruction;
+ return unwrap_err_payload_instruction->safety_check_on;
+ }
}
zig_unreachable();
}