[clang][Interp][NFC] Make InitField() not pop the pointer
authorTimm Bäder <tbaeder@redhat.com>
Fri, 21 Oct 2022 13:43:42 +0000 (15:43 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Mon, 7 Nov 2022 07:30:43 +0000 (08:30 +0100)
commit9a3b969d1faa77d4c629ddb797d317579fbe0555
tree80e354f430be46a38db05b60a8775273f873cd11
parent6e557e28ecf41353f207bc93d1a718ec508a68ff
[clang][Interp][NFC] Make InitField() not pop the pointer

This was confusing. InitElem peeks a pointer, while InitElemPop will
pop the pointer. However, for fields, InitField would pop the pointer
and no InitFieldPop exists. At least make InitField and InitElem behave
the same.
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/ByteCodeStmtGen.cpp
clang/lib/AST/Interp/Interp.h