diff options
author | Fangrui Song <i@maskray.me> | 2022-06-24 22:15:47 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-06-24 22:15:47 -0700 |
commit | 572b08790a69f955ae0cbb1b4a7d4a215f15dad9 (patch) | |
tree | 50884baf33706b97836b7049c51d1ece9d7e50bf /llvm/unittests/Support/SourceMgrTest.cpp | |
parent | a83034ef2b3d6ac17eade53a69387add5e4ddbc7 (diff) | |
download | llvm-572b08790a69f955ae0cbb1b4a7d4a215f15dad9.zip llvm-572b08790a69f955ae0cbb1b4a7d4a215f15dad9.tar.gz llvm-572b08790a69f955ae0cbb1b4a7d4a215f15dad9.tar.bz2 |
[clang] Add back -fsanitize=array-bounds workaround for size-1 array after -fstrict-flex-arrays change
Before C99 introduced flexible array member, common practice uses size-1 array
to emulate FAM, e.g. https://github.com/python/cpython/issues/94250
As a result, -fsanitize=array-bounds instrumentation skipped such structures
as a workaround (from 539e4a77bbabbc19f22b2bd24e04af2e432e599d).
D126864 accidentally dropped the workaround. Add it back with tests.
Diffstat (limited to 'llvm/unittests/Support/SourceMgrTest.cpp')
0 files changed, 0 insertions, 0 deletions