amdgcn: Update vec_safe_grow_cleared usage
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 28 Aug 2020 14:41:38 +0000 (15:41 +0100)
committerAndrew Stubbs <ams@codesourcery.com>
Fri, 28 Aug 2020 14:43:06 +0000 (15:43 +0100)
An API change broke the amdgcn build.

gcc/ChangeLog:

* config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Add "true"
parameter to vec_safe_grow_cleared.

gcc/config/gcn/gcn-tree.c

index 4dcb179ba716b4cd4aeba662fccf8771720b696e..a681426139b083683cc786bd9c850daf58d782c7 100644 (file)
@@ -456,7 +456,7 @@ gcn_goacc_get_worker_red_decl (tree type, unsigned offset)
 
       varpool_node::finalize_decl (decl);
 
-      vec_safe_grow_cleared (machfun->reduc_decls, offset + 1);
+      vec_safe_grow_cleared (machfun->reduc_decls, offset + 1, true);
       (*machfun->reduc_decls)[offset] = decl;
 
       return decl;