From d654ad96eb4bee13f672e9b1549b52b499cf9ae1 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 19 Dec 2022 11:15:55 -0700 Subject: [PATCH] Use first_opcode in another spot I found one place that could use expression::first_opcode. Reviewed-By: Lancelot Six --- gdb/printcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 13b979c3720..c3c2e5ad612 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1500,7 +1500,7 @@ set_command (const char *exp, int from_tty) { expression_up expr = parse_expression (exp); - switch (expr->op->opcode ()) + switch (expr->first_opcode ()) { case UNOP_PREINCREMENT: case UNOP_POSTINCREMENT: -- 2.30.2