[all-commits] [llvm/llvm-project] e0746a: [clang] cleanup -fstrict-flex-arrays implementation

serge-sans-paille via All-commits all-commits at lists.llvm.org
Thu Sep 1 06:10:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0746a8a8d647ccee41accf16df895c9b03552c2
      https://github.com/llvm/llvm-project/commit/e0746a8a8d647ccee41accf16df895c9b03552c2
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2022-09-01 (Thu, 01 Sep 2022)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGen/bounds-checking-fam.c
    M clang/test/CodeGen/object-size-flex-array.c

  Log Message:
  -----------
  [clang] cleanup -fstrict-flex-arrays implementation

This is a follow up to https://reviews.llvm.org/D126864, addressing some remaining
comments.

It also considers union with a single zero-length array field as FAM for each
value of -fstrict-flex-arrays.

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




More information about the All-commits mailing list