Without the "align" attribute, marking the argument dereferenceable is basically useless. See also D80166.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang/lib/CodeGen/CGCall.cpp | ||
|---|---|---|
| 2524 | Is it reasonable to assume that this is an array of complete objects, or do we need to worry about someone doing e.g. class A : virtual HighlyAligned { char buffer[16]; ];
void foo(A[static 1]);This isn't completely disabled in C++ mode, is it? | |
| clang/lib/CodeGen/CGCall.cpp | ||
|---|---|---|
| 2524 | It is disabled in C++: "error: static array size is a C99 feature, not permitted in C++", | |
Is it reasonable to assume that this is an array of complete objects, or do we need to worry about someone doing e.g.
class A : virtual HighlyAligned { char buffer[16]; ]; void foo(A[static 1]);This isn't completely disabled in C++ mode, is it?