[all-commits] [llvm/llvm-project] fce093: [clang][Interp] Fix parameter map when re-visiting...

Timm Bäder via All-commits all-commits at lists.llvm.org
Thu Mar 30 23:06:25 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fce093ccb1c56b57bc26c47b47e2a0388953a27f
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2023-03-31 (Fri, 31 Mar 2023)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeEmitter.cpp
    M clang/test/AST/Interp/functions.cpp

  Log Message:
  [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

More information about the All-commits mailing list