[all-commits] [llvm/llvm-project] d913aa: [clang][Interp][NFC] Make a local function static

Timm Baeder via All-commits all-commits at lists.llvm.org
Wed Jul 26 02:54:14 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d913aa6971c582724a2ba71689fe4908a951e935
      https://github.com/llvm/llvm-project/commit/d913aa6971c582724a2ba71689fe4908a951e935
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2023-07-26 (Wed, 26 Jul 2023)

  Changed paths:
    M clang/lib/AST/Interp/InterpBuiltin.cpp

  Log Message:
  -----------
  [clang][Interp][NFC] Make a local function static


  Commit: e9eb8362f0a580ba8a4cb173b6e8414a6d1a4db4
      https://github.com/llvm/llvm-project/commit/e9eb8362f0a580ba8a4cb173b6e8414a6d1a4db4
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2023-07-26 (Wed, 26 Jul 2023)

  Changed paths:
    M clang/lib/AST/Interp/InterpBuiltin.cpp

  Log Message:
  -----------
  [clang][Interp][NFC] Add an assertion


  Commit: 744a968f91f7bb92594a422c1b71f03a47c2415d
      https://github.com/llvm/llvm-project/commit/744a968f91f7bb92594a422c1b71f03a47c2415d
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2023-07-26 (Wed, 26 Jul 2023)

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

  Log Message:
  -----------
  [clang][Interp] Fix return statements with expresssion in void functions

If the return type of a function is void, ReturnType is not set, but we
used to emit a RVOPtr instruction, which doesn't make sense for a
function returning void.

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


Compare: https://github.com/llvm/llvm-project/compare/efa43d785ee6...744a968f91f7


More information about the All-commits mailing list