[clang][Interp] Fix parameter map when re-visiting function
authorTimm Bäder <tbaeder@redhat.com>
Fri, 13 Jan 2023 13:07:59 +0000 (14:07 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Fri, 31 Mar 2023 06:06:06 +0000 (08:06 +0200)
commitfce093ccb1c56b57bc26c47b47e2a0388953a27f
tree697be43f15ae9e176fb1f4a0582a547066ca9f0d
parent00b733e20092788b34c38e651f418d1e82fd506e
[clang][Interp] Fix parameter map when re-visiting function

'Params' is a member of the ByteCodeEmitter. We only added the
parameters the first time  we saw the function, so subsequent visits
didn't work if they had (and used) parameters.

Just do the work everytime we see a function.

Differential Revision: https://reviews.llvm.org/D141681
clang/lib/AST/Interp/ByteCodeEmitter.cpp
clang/test/AST/Interp/functions.cpp