X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fopt_confirms.c;h=0bab0a0e526f279076c105539f13481a894725a5;hb=c1c777ab401f028f3bfef31836da00c3f3fc5e0c;hp=d717ccd31c07fa5c15791366cd4bb2a4c1ec6460;hpb=7547cf525ad54f59d2dc3f39d4b257911c94989b;p=libfirm diff --git a/ir/opt/opt_confirms.c b/ir/opt/opt_confirms.c index d717ccd31..0bab0a0e5 100644 --- a/ir/opt/opt_confirms.c +++ b/ir/opt/opt_confirms.c @@ -224,6 +224,14 @@ FIRM_API int value_not_null(const ir_node *n, ir_node_cnst_ptr *confirm) return 0; } /* value_not_null */ +#ifdef __cplusplus +extern "C++" { + static inline ir_value_classify_sign operator *(ir_value_classify_sign sign, int mul) { + return (ir_value_classify_sign) (sign*mul); + } +} +#endif + /* * Check, if the value of a node can be confirmed >= 0 or <= 0, * If the mode of the value did not honor signed zeros, else @@ -237,7 +245,7 @@ FIRM_API ir_value_classify_sign classify_value_sign(ir_node *n) int negate = 1; for (;;) { - ir_opcode code = get_irn_opcode(n); + unsigned code = get_irn_opcode(n); switch (code) { case iro_Minus: