aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-04-29 13:11:18 +0000
committerRichard Guenther <rguenther@suse.de>2011-04-29 13:11:18 +0000
commit75fd29ce4852ffab55214d42f89c4401736666d0 (patch)
tree9944088576a00cf7b79e01597771ae2db283896d /gcc/predict.c
parent88f6777e3c5ee785e119fe647b42d7e9e5265897 (diff)
2011-04-29 Richard Guenther <rguenther@suse.de>
* tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node for the remapped region number. * predict.c (build_predict_expr): Use integer_type_node for the predict kind. * fold-const.c (fold_binary_loc): Use integer_type_node for the shift amount. Use a proper type for the PLUS_EXPR operand. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@173156 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index db9c5c5a8fe..e18f9379c3f 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -2291,7 +2291,7 @@ tree
build_predict_expr (enum br_predictor predictor, enum prediction taken)
{
tree t = build1 (PREDICT_EXPR, void_type_node,
- build_int_cst (NULL, predictor));
+ build_int_cst (integer_type_node, predictor));
SET_PREDICT_EXPR_OUTCOME (t, taken);
return t;
}