[all-commits] [llvm/llvm-project] 9a3b96: [clang][Interp][NFC] Make InitField() not pop the ...

Timm Bäder via All-commits all-commits at lists.llvm.org
Sun Nov 6 23:31:07 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a3b969d1faa77d4c629ddb797d317579fbe0555
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-11-07 (Mon, 07 Nov 2022)

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

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

More information about the All-commits mailing list