[PATCH] D133583: [clang][ubsan] Fix __builtin_assume_aligned incorrect type descriptor and C++ object polymorphic address
Lin Yurong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 16 13:14:16 PDT 2022
yronglin updated this revision to Diff 460870.
yronglin added a comment.
Add test case for C++ polymorphism class
Use `typedef __typeof__(sizeof(0)) size_t;` instead of `#include <stddef.h>`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133583/new/
https://reviews.llvm.org/D133583
Files:
clang/include/clang/Basic/Builtins.def
clang/lib/Basic/Builtins.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/catch-alignment-assumption-builtin_assume_aligned-polymorphism.cpp
clang/test/Sema/builtin-redecl.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133583.460870.patch
Type: text/x-patch
Size: 9811 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220916/9b313ce3/attachment-0001.bin>
More information about the cfe-commits
mailing list