Avoid ambiguous or-pattern.

master
Alain Frisch 2016-03-09 18:42:07 +01:00
parent 8d0f08b20e
commit 3d00fc8773
1 changed files with 4 additions and 1 deletions

View File

@ -126,7 +126,10 @@ method! select_operation op args =
| Caddi | Caddv | Cadda ->
begin match args with
(* Add immediate *)
| [arg; Cconst_int n] | [Cconst_int n; arg] when self#is_immediate n ->
| [arg; Cconst_int n] when self#is_immediate n ->
((if n >= 0 then Iintop_imm(Iadd, n) else Iintop_imm(Isub, -n)),
[arg])
| [Cconst_int n; arg] when self#is_immediate n ->
((if n >= 0 then Iintop_imm(Iadd, n) else Iintop_imm(Isub, -n)),
[arg])
(* Shift-add *)