| ... | @@ -67,7 +67,7 @@ pub fn addMaybeWrap( | ... | @@ -67,7 +67,7 @@ pub fn addMaybeWrap( |
| 67 | ) CompileError!Value { | 67 | ) CompileError!Value { |
| 68 | const zcu = sema.pt.zcu; | 68 | const zcu = sema.pt.zcu; |
| 69 | if (lhs.isUndef(zcu)) return lhs; | 69 | if (lhs.isUndef(zcu)) return lhs; |
| 70 | if (lhs.isUndef(zcu)) return rhs; | 70 | if (rhs.isUndef(zcu)) return rhs; |
| 71 | switch (ty.zigTypeTag(zcu)) { | 71 | switch (ty.zigTypeTag(zcu)) { |
| 72 | .int, .comptime_int => return (try intAddWithOverflow(sema, lhs, rhs, ty)).wrapped_result, | 72 | .int, .comptime_int => return (try intAddWithOverflow(sema, lhs, rhs, ty)).wrapped_result, |
| 73 | .float, .comptime_float => return floatAdd(sema, lhs, rhs, ty), | 73 | .float, .comptime_float => return floatAdd(sema, lhs, rhs, ty), |