aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-array-notation.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2015-06-27 10:39:31 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2015-06-27 10:39:31 +0000
commit56a6f1d33f7259fde0efc9c37a1308c306590e8b (patch)
tree9b8f8950e8b14ba068d68929c14b53ae3b8d5efd /gcc/cp/cp-array-notation.c
parente1cc235523d628789a026065a8b6970c8eb6014e (diff)
downloadgcc-56a6f1d33f7259fde0efc9c37a1308c306590e8b.zip
gcc-56a6f1d33f7259fde0efc9c37a1308c306590e8b.tar.gz
gcc-56a6f1d33f7259fde0efc9c37a1308c306590e8b.tar.bz2
call.c (set_up_extended_ref_temp): Use VAR_P.
* call.c (set_up_extended_ref_temp): Use VAR_P. * class.c: Use VAR_P throughout. * constexpr.c (cxx_eval_constant_expression): Use VAR_P. * cp-array-notation.c (make_triplet_val_inv): Likewise. * decl.c: Use VAR_OR_FUNCTION_DECL_P or VAR_P throughout. * decl2.c: Likewise. * error.c (dump_decl): Use VAR_P. * mangle.c (decl_implicit_alias_p): Likewise. * parser.c: Use VAR_P throughout. * pt.c: Likewise. * semantics.c: Likewise. * vtable-class-hierarchy.c: Likewise. * tree.c (handle_abi_tag_attribute): Use VAR_OR_FUNCTION_DECL_P. From-SVN: r225098
Diffstat (limited to 'gcc/cp/cp-array-notation.c')
-rw-r--r--gcc/cp/cp-array-notation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cp-array-notation.c b/gcc/cp/cp-array-notation.c
index 9b8034e..a84efd5 100644
--- a/gcc/cp/cp-array-notation.c
+++ b/gcc/cp/cp-array-notation.c
@@ -87,7 +87,7 @@ make_triplet_val_inv (tree *value)
{
if (TREE_CODE (*value) != INTEGER_CST
&& TREE_CODE (*value) != PARM_DECL
- && TREE_CODE (*value) != VAR_DECL)
+ && !VAR_P (*value))
*value = get_temp_regvar (ptrdiff_type_node, *value);
}