From e5ed3b20351a2715fe88d9a5dbcc8e6757fe96aa Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 24 Aug 2022 06:46:23 +0200 Subject: llvm defer and more --- src/fold.cff | 1 + 1 file changed, 1 insertion(+) (limited to 'src/fold.cff') diff --git a/src/fold.cff b/src/fold.cff index c9991b7..00e4702 100644 --- a/src/fold.cff +++ b/src/fold.cff @@ -129,6 +129,7 @@ fn fbinary(ex *Expr) void { case op == '<<' and ty->is(:Int); ei.i = li.i << ri.i; case op == '>>' and ty->is(:Int) and !ty.u.Int.sgn; ei.u = li.u >> ri.u; case op == '>>' and ty->is(:Int); ei.i = li.i >> ri.i; + case else return; } if !ex.ty->is(:Bool) { -- cgit v1.2.3