InternPool: fix build-exe and compiler-rt crashes
This commit is contained in:
committed by
Andrew Kelley
parent
9cd0ca9f48
commit
1dc01f1140
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user