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
Unit Tests
Unit Tests
| Time | Test | |
|---|---|---|
| 1,260 ms | linux > libFuzzer.libFuzzer::fuzzer-fdmask.test | |
| 250 ms | windows > lld.ELF::dependency-file.s |
Event Timeline
| clang/lib/CodeGen/CGCall.cpp | ||
|---|---|---|
| 2503 | 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 | ||
|---|---|---|
| 2503 | 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?