aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.cc
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2023-09-28 10:51:01 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2023-09-28 10:51:01 +0100
commit46595ce72e5855189e3c60a140c3ca5aaddfb58c (patch)
tree8ebda94353db5886450faaf3592b47a2b7483143 /gcc/cp/constexpr.cc
parent0d9b4e8647ff01c3d3a782ab26684ca5a7c2f527 (diff)
downloadgcc-46595ce72e5855189e3c60a140c3ca5aaddfb58c.zip
gcc-46595ce72e5855189e3c60a140c3ca5aaddfb58c.tar.gz
gcc-46595ce72e5855189e3c60a140c3ca5aaddfb58c.tar.bz2
Remove some unused poly_int variables
Switching to default constructors for poly_int exposed some unused variables that weren't previously diagnosed. gcc/ * dwarf2out.cc (mem_loc_descriptor): Remove unused variables. * tree-affine.cc (expr_to_aff_combination): Likewise. gcc/cp/ * constexpr.cc (cxx_fold_indirect_ref): Remove unused variables. gcc/rust/ * backend/rust-constexpr.cc (rs_fold_indirect_ref): Remove unused variables.
Diffstat (limited to 'gcc/cp/constexpr.cc')
-rw-r--r--gcc/cp/constexpr.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/cp/constexpr.cc b/gcc/cp/constexpr.cc
index 2a6601c..0f948db 100644
--- a/gcc/cp/constexpr.cc
+++ b/gcc/cp/constexpr.cc
@@ -5643,7 +5643,6 @@ cxx_fold_indirect_ref (const constexpr_ctx *ctx, location_t loc, tree type,
{
tree sub = op0;
tree subtype;
- poly_uint64 const_op01;
/* STRIP_NOPS, but stop if REINTERPRET_CAST_P. */
while (CONVERT_EXPR_P (sub) || TREE_CODE (sub) == NON_LVALUE_EXPR