diff options
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 552994b5b5..a1ac6a6f14 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -13619,6 +13619,10 @@ expand_simd_clones (struct cgraph_node *node) && TYPE_ARG_TYPES (TREE_TYPE (node->decl)) == NULL_TREE) return; + /* Call this before creating clone_info, as it might ggc_collect. */ + if (node->definition && node->has_gimple_body_p ()) + node->get_body (); + do { /* Start with parsing the "omp declare simd" attribute(s). */ |