]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove dead code from scalar_binop
authorTom Tromey <tromey@adacore.com>
Wed, 1 Mar 2023 21:02:40 +0000 (14:02 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 13 Mar 2023 12:31:22 +0000 (06:31 -0600)
commit349a125d16bec4a894e01494df10a2825195178e
tree3a1c075c995328519756cf8b247aa6dba318a6ec
parentd7001b29e9f256dfc60acb481d9df8f91f2ee623
Remove dead code from scalar_binop

scalar_binop has code for "&&" and "||", but I think this code can't
currently be run -- and, furthermore, it doesn't make sense to have
this code here, as the point of these operators is to short-circuit
evaluation.

This patch removes the dead code.

Regression tested on x86-64 Fedora 36.

Approved-by: Kevin Buettner <kevinb@redhat.com>
gdb/valarith.c