Unified · Split
| @@ -3101,7 +3101,9 @@ void gen_op(int op) · 3100 unmodified lines | |||
| 3101 | /* XXX: cast to int ? (long long case) */ | 3101 | /* XXX: cast to int ? (long long case) */ |
| 3102 | vpushi(pointed_size(vtop[-1].t)); | 3102 | vpushi(pointed_size(vtop[-1].t)); |
| 3103 | gen_op('*'); | 3103 | gen_op('*'); |
| 3104 | if (do_bounds_check) { | 3104 | /* if evaluating constant expression, no code should be |
| 3105 | generated, so no bound check */ | ||
| 3106 | if (do_bounds_check && !const_wanted) { | ||
| 3105 | /* if bounded pointers, we generate a special code to | 3107 | /* if bounded pointers, we generate a special code to |
| 3106 | test bounds */ | 3108 | test bounds */ |
| 3107 | if (op == '-') { | 3109 | if (op == '-') { |