[all-commits] [llvm/llvm-project] 89525c: [Clang] Add helper method to determine if a nonvir...

William Moses via All-commits all-commits at lists.llvm.org
Fri Mar 25 13:32:25 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 89525cbf283f1ffeca1e007a06b29917a9eadc53
      https://github.com/llvm/llvm-project/commit/89525cbf283f1ffeca1e007a06b29917a9eadc53
  Author: William S. Moses <gh at wsmoses.com>
  Date:   2022-03-25 (Fri, 25 Mar 2022)

  Changed paths:
    M clang/lib/CodeGen/CGRecordLayout.h

  Log Message:
  -----------
  [Clang] Add helper method to determine if a nonvirtual base has an entry in the LLVM struct

This patch adds a helper method to determine if a nonvirtual base has an entry in the LLVM struct. Such a base may not have an entry
if the base does not have any fields/bases itself that would change the size of the struct. This utility method is useful for other frontends (Polygeist) that use Clang as an API to generate code.

Reviewed By: efriedma

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




More information about the All-commits mailing list