mirror of
https://github.com/ziglang/zig.git
synced 2026-02-03 21:23:36 +00:00
Fixed self hosted compiler compiler error from prev commit
This commit is contained in:
parent
530f795769
commit
8ada030971
@ -363,9 +363,47 @@ pub const NodeInfixOp = struct {
|
||||
i -= 1;
|
||||
|
||||
switch (self.op) {
|
||||
InfixOp.EqualEqual,
|
||||
InfixOp.Add,
|
||||
InfixOp.AddWrap,
|
||||
InfixOp.ArrayCat,
|
||||
InfixOp.ArrayMult,
|
||||
InfixOp.Assign,
|
||||
InfixOp.AssignBitAnd,
|
||||
InfixOp.AssignBitOr,
|
||||
InfixOp.AssignBitShiftLeft,
|
||||
InfixOp.AssignBitShiftRight,
|
||||
InfixOp.AssignBitXor,
|
||||
InfixOp.AssignDiv,
|
||||
InfixOp.AssignMinus,
|
||||
InfixOp.AssignMinusWrap,
|
||||
InfixOp.AssignMod,
|
||||
InfixOp.AssignPlus,
|
||||
InfixOp.AssignPlusWrap,
|
||||
InfixOp.AssignTimes,
|
||||
InfixOp.AssignTimesWarp,
|
||||
InfixOp.BangEqual,
|
||||
InfixOp.Period => {},
|
||||
InfixOp.BitAnd,
|
||||
InfixOp.BitOr,
|
||||
InfixOp.BitShiftLeft,
|
||||
InfixOp.BitShiftRight,
|
||||
InfixOp.BitXor,
|
||||
InfixOp.BoolAnd,
|
||||
InfixOp.BoolOr,
|
||||
InfixOp.Div,
|
||||
InfixOp.EqualEqual,
|
||||
InfixOp.ErrorUnion,
|
||||
InfixOp.GreaterOrEqual,
|
||||
InfixOp.GreaterThan,
|
||||
InfixOp.LessOrEqual,
|
||||
InfixOp.LessThan,
|
||||
InfixOp.MergeErrorSets,
|
||||
InfixOp.Mod,
|
||||
InfixOp.Mult,
|
||||
InfixOp.MultWrap,
|
||||
InfixOp.Period,
|
||||
InfixOp.Sub,
|
||||
InfixOp.SubWrap,
|
||||
InfixOp.UnwrapMaybe => {},
|
||||
}
|
||||
|
||||
if (i < 1) return self.rhs;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user