[clang][Interp] Fix binary comma operators
authorTimm Bäder <tbaeder@redhat.com>
Sun, 15 Jan 2023 08:27:11 +0000 (09:27 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Fri, 31 Mar 2023 12:54:51 +0000 (14:54 +0200)
commitd29f70670db8ca43a49b6df9112035dc4b646182
tree0ddc1e92808efd08e8db9393263b7c5a0552f353
parentffc422463df19b79607bc84bc0b720d999b67ddb
[clang][Interp] Fix binary comma operators

We left the result of RHS on the stack in case DiscardResult was true.

Differential Revision: https://reviews.llvm.org/D141784
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/test/SemaCXX/constexpr-duffs-device.cpp