Android's assert can call both assert and assert2 functions under the cover but NoReturn does not handle the latter. This patch fixes this.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Relevant snippet from bionic/libc/include/assert.h:
# if __ISO_C_VISIBLE >= 1999 # define assert(e) ((e) ? (void)0 : __assert2(__FILE__, __LINE__, __func__, #e)) ... __dead void __assert2(const char *, int, const char *, const char *);
Comment Actions
Thanks Yuri! This looks great. Can you also add a test to tests/analysis/NoReturn.m for this? You can follow the example of test_wassert there.