[all-commits] [llvm/llvm-project] 3460a5: [clang] Unify Sema and CodeGen implementation of i...

serge-sans-paille via All-commits all-commits at lists.llvm.org
Tue Oct 4 11:42:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3460a5d7957237a8dbe8ce523edb3e83baa2f4c7
      https://github.com/llvm/llvm-project/commit/3460a5d7957237a8dbe8ce523edb3e83baa2f4c7
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
    M clang/include/clang/AST/Expr.h
    M clang/lib/AST/Expr.cpp
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/SemaObjC/flexible-array-bounds.m

  Log Message:
  -----------
  [clang] Unify Sema and CodeGen implementation of isFlexibleArrayMemberExpr

Turn it into a single Expr::isFlexibleArrayMemberLike method, as discussed in

        https://discourse.llvm.org/t/rfc-harmonize-flexible-array-members-handling

Keep different behavior with respect to macro / template substitution, and
harmonize sharp edges: ObjC interface now behave as C struct wrt. FAM and
-fstrict-flex-arrays.

This does not impact __builtin_object_size interactions with FAM.

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




More information about the All-commits mailing list