aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
-rw-r--r--gcc/tree-ssa-phiopt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c
index 3eac9b1..714deab 100644
--- a/gcc/tree-ssa-phiopt.c
+++ b/gcc/tree-ssa-phiopt.c
@@ -900,6 +900,8 @@ gimple_simplify_phiopt (bool early_p, tree type, gimple *comp_stmt,
result = maybe_push_res_to_seq (&op, &seq1);
if (result)
{
+ if (loc != UNKNOWN_LOCATION)
+ annotate_all_with_location (seq1, loc);
gimple_seq_add_seq_without_update (seq, seq1);
return result;
}
@@ -929,6 +931,8 @@ gimple_simplify_phiopt (bool early_p, tree type, gimple *comp_stmt,
result = maybe_push_res_to_seq (&op1, &seq1);
if (result)
{
+ if (loc != UNKNOWN_LOCATION)
+ annotate_all_with_location (seq1, loc);
gimple_seq_add_seq_without_update (seq, seq1);
return result;
}