Issue |
150707
|
Summary |
[Clang] Trap reasons null check
|
Labels |
clang
|
Assignees |
|
Reporter |
anthonyhatran
|
As of current, a null check is in place for emitting trap reasons via the `-fsanitize-trap=` flag (trap reasons can be disabled with `-fno-sanitize-debug-info-traps`). This is to prevent a nullptr dereference since clang will sometimes emit a UBSan trap into the prologue of a function when debug-info locations aren't defined.
Test case here with more details:
`clang/test/CodeGen/ubsan-trap-reason-crash.cpp`.
[not upstream yet, will edit this line out once upstream]
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs