[clang][Interp][NFC] Use StorePop for assignments with DiscardResult
authorTimm Bäder <tbaeder@redhat.com>
Fri, 21 Oct 2022 10:26:05 +0000 (12:26 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Mon, 7 Nov 2022 06:56:25 +0000 (07:56 +0100)
commit7c0a2d9cda996a04c9eb55244a0ebf57545de849
treee118c44c945fb2a6823099a97c070f9aec4a8ba6
parent10483ac743e69a6de684593565f586116b506b2e
[clang][Interp][NFC] Use StorePop for assignments with DiscardResult

If we don't need the result anyway, use StorePop, instead of a Store+Pop
combination. That way we save one instruction and not using the result
is the common case anyway.
clang/lib/AST/Interp/ByteCodeExprGen.cpp