InternPool: fix build-exe and compiler-rt crashes

This commit is contained in:
Jacob Young
2023-05-26 18:56:31 -04:00
committed by Andrew Kelley
parent 9cd0ca9f48
commit 1dc01f1140
7 changed files with 191 additions and 92 deletions

View File

@@ -6723,7 +6723,7 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue {
},
.Max => switch (scalar_ty.zigTypeTag(mod)) {
.Bool => try mod.intValue(scalar_ty, 0),
.Int => try scalar_ty.minInt(mod),
.Int => try scalar_ty.minInt(mod, scalar_ty),
.Float => try mod.floatValue(scalar_ty, std.math.nan_f128),
else => unreachable,
},