[all-commits] [llvm/llvm-project] 5b54cf: [clang][Interp] Unify visiting variable declarations

Timm Bäder via All-commits all-commits at lists.llvm.org
Thu Jan 19 01:46:53 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b54cf1a2892767fe949826a32d7820732028a38
      https://github.com/llvm/llvm-project/commit/5b54cf1a2892767fe949826a32d7820732028a38
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2023-01-19 (Thu, 19 Jan 2023)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeExprGen.cpp
    M clang/lib/AST/Interp/ByteCodeExprGen.h
    M clang/lib/AST/Interp/ByteCodeStmtGen.cpp
    M clang/lib/AST/Interp/ByteCodeStmtGen.h
    M clang/lib/AST/Interp/Program.cpp
    M clang/lib/AST/Interp/Program.h

  Log Message:
  -----------
  [clang][Interp] Unify visiting variable declarations

We often visit the same variable multiple times, e.g. once when checking
its initializer and later when compiling the function. Unify both of
those in visitVarDecl() and do the returning of the value in
visitDecl().

Differential Revision: https://reviews.llvm.org/D136815




More information about the All-commits mailing list