authorgravatar for noam@pixelhero.devNoam Preil <noam@pixelhero.dev> 2020-09-14 19:44:32-04:00
committergravatar for noam@pixelhero.devNoam Preil <noam@pixelhero.dev> 2020-10-06 15:09:57-04:00
loga2e1639d6d10143c91b6c25968cc58f865dbe267
tree695e16ee2eb4817b150eac9eeb4d431873f59412
parentea7b2750c823e7160db790582a1dcb96a9feebc7
signaturelock-open Commit is signed but in an unrecognized format.

Peer type resolution: comptime_int decay to other int


1 files changed, 1 insertions(+), 1 deletions(-)

src/Module.zig+1-1
...@@ -2661,7 +2661,7 @@ pub fn resolvePeerTypes(self: *Module, scope: *Scope, instructions: []*Inst) !Ty...@@ -2661,7 +2661,7 @@ pub fn resolvePeerTypes(self: *Module, scope: *Scope, instructions: []*Inst) !Ty
2661 continue;2661 continue;
2662 }2662 }
26632663
2664 if (prev_inst.ty.zigTypeTag() == .ComptimeInt and next_inst.ty.isInt()) {2664 if ((prev_inst.ty.zigTypeTag() == .ComptimeInt and next_inst.ty.isInt()) or (next_inst.ty.zigTypeTag() == .ComptimeInt and prev_inst.ty.isInt())) {
2665 prev_inst = next_inst;2665 prev_inst = next_inst;
2666 continue;2666 continue;
2667 }2667 }