[all-commits] [llvm/llvm-project] 804af9: Reland: [clang][ExprConstant] fix __builtin_object...
Nick Desaulniers via All-commits
all-commits at lists.llvm.org
Tue May 23 14:51:37 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 804af933f7310f78d91e13ad8a13b64b00249614
https://github.com/llvm/llvm-project/commit/804af933f7310f78d91e13ad8a13b64b00249614
Author: Nick Desaulniers <ndesaulniers at google.com>
Date: 2023-05-23 (Tue, 23 May 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/AST/ExprConstant.cpp
M clang/test/CodeGen/object-size.c
Log Message:
-----------
Reland: [clang][ExprConstant] fix __builtin_object_size for flexible array members
As reported by @kees, GCC treats __builtin_object_size of structures
containing flexible array members (aka arrays with incomplete type) not
just as the sizeof the underlying type, but additionally the size of the
members in a designated initializer list.
Fixes: https://github.com/llvm/llvm-project/issues/62789
Reviewed By: erichkeane, efriedma
Differential Revision: https://reviews.llvm.org/D150892
More information about the All-commits
mailing list