From: Tom Tromey Date: Mon, 19 Dec 2022 18:15:55 +0000 (-0700) Subject: Use first_opcode in another spot X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d654ad96eb4bee13f672e9b1549b52b499cf9ae1;p=binutils-gdb.git Use first_opcode in another spot I found one place that could use expression::first_opcode. Reviewed-By: Lancelot Six --- 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: