Message ID | 20151203181842.GG3155@virgil.suse.cz |
---|---|
State | New |
Headers | show |
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 8854df7..05d8901 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -3731,7 +3731,11 @@ scan_omp_1_op (tree *tp, int *walk_subtrees, void *data) case LABEL_DECL: case RESULT_DECL: if (ctx) - *tp = remap_decl (t, &ctx->cb); + { + tree repl = remap_decl (t, &ctx->cb); + gcc_checking_assert (TREE_CODE (repl) != ERROR_MARK); + *tp = repl; + } break; default: