| ... | ... | @@ -2572,7 +2572,8 @@ pub fn analyzeIsNull( |
| 2572 | 2572 | ) InnerError!*Inst { |
| 2573 | 2573 | if (operand.value()) |opt_val| { |
| 2574 | 2574 | const is_null = opt_val.isNull(); |
| 2575 | | return self.constBool(scope, src, invert_logic); |
| 2575 | const bool_value = if (invert_logic) !is_null else is_null; |
| 2576 | return self.constBool(scope, src, bool_value); |
| 2576 | 2577 | } |
| 2577 | 2578 | const b = try self.requireRuntimeBlock(scope, src); |
| 2578 | 2579 | const inst_tag: Inst.Tag = if (invert_logic) .isnonnull else .isnull; |