diff options
Diffstat (limited to 'gcc/hsa-brig.c')
-rw-r--r-- | gcc/hsa-brig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/hsa-brig.c b/gcc/hsa-brig.c index 9c74b9a..4dc568c 100644 --- a/gcc/hsa-brig.c +++ b/gcc/hsa-brig.c @@ -985,7 +985,7 @@ hsa_op_immed::emit_to_buffer (unsigned *brig_repr_size) } else if (TREE_CODE (m_tree_value) == CONSTRUCTOR) { - unsigned len = vec_safe_length (CONSTRUCTOR_ELTS (m_tree_value)); + unsigned len = CONSTRUCTOR_NELTS (m_tree_value); for (unsigned i = 0; i < len; i++) { tree v = CONSTRUCTOR_ELT (m_tree_value, i)->value; |