From d654ad96eb4bee13f672e9b1549b52b499cf9ae1 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 19 Dec 2022 11:15:55 -0700 Subject: 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(-) (limited to 'gdb') diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 13b979c..c3c2e5a 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: -- cgit v1.1