* cp-array-notation.c (expand_sec_reduce_builtin): Use INDIRECT_REF_P.
* cp-ubsan.c (cp_ubsan_check_member_access_r): Likewise.
From-SVN: r224999
+2015-06-26 Marek Polacek <polacek@redhat.com>
+
+ * cp-array-notation.c (expand_sec_reduce_builtin): Use INDIRECT_REF_P.
+ * cp-ubsan.c (cp_ubsan_check_member_access_r): Likewise.
+
2015-06-25 Andrew MacLeod <amacleod@redhat.com>
* call.c: Remove ipa-ref.h and plugin-api.h from include list.
array_ind_value = get_temp_regvar (TREE_TYPE (func_parm), func_parm);
array_op0 = (*array_operand)[0];
- if (TREE_CODE (array_op0) == INDIRECT_REF)
+ if (INDIRECT_REF_P (array_op0))
array_op0 = TREE_OPERAND (array_op0, 0);
switch (an_type)
{
{
case ADDR_EXPR:
t = TREE_OPERAND (stmt, 0);
- while ((TREE_CODE (t) == MEM_REF || TREE_CODE (t) == INDIRECT_REF)
+ while ((TREE_CODE (t) == MEM_REF || INDIRECT_REF_P (t))
&& TREE_CODE (TREE_OPERAND (t, 0)) == ADDR_EXPR)
t = TREE_OPERAND (TREE_OPERAND (t, 0), 0);
if (handled_component_p (t))