[all-commits] [llvm/llvm-project] 8b87cb: [clang][Interp] Remove unused getGlobalIdx()

Timm Bäder via All-commits all-commits at lists.llvm.org
Fri Oct 28 07:36:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b87cb4853409ea8066e451ee87f550a9ecd3c34
      https://github.com/llvm/llvm-project/commit/8b87cb4853409ea8066e451ee87f550a9ecd3c34
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-10-28 (Fri, 28 Oct 2022)

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

  Log Message:
  -----------
  [clang][Interp] Remove unused getGlobalIdx()

Remove the only use with the version we already use in
VisitDeclRefExpr().


  Commit: 0ccff030f3b4145bd658e362a63db9aae2942bee
      https://github.com/llvm/llvm-project/commit/0ccff030f3b4145bd658e362a63db9aae2942bee
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-10-28 (Fri, 28 Oct 2022)

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

  Log Message:
  -----------
  [clang][Interp] Fix record members of reference type

When assigning to them, we can't classify the expression type, because
that doesn't contain the right information.

And when reading from them, we need to do the extra deref, just like we
do when reading from a DeclRefExpr.

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


Compare: https://github.com/llvm/llvm-project/compare/dce78646f07f...0ccff030f3b4


More information about the All-commits mailing list