[PATCH] D67122: [UBSan][clang][compiler-rt] Applying non-zero offset to nullptr is undefined behaviour

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 2 09:36:15 PDT 2019


lebedev.ri added a comment.

In D67122#1691307 <https://reviews.llvm.org/D67122#1691307>, @lebedev.ri wrote:

> Ping.
>  After talking with @aaron.ballman, revised the check to also handle the C semantics ("ptr+0 is UB").


And that resulted in one more occurrence in test-suite - rL373486 <https://reviews.llvm.org/rL373486>.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67122/new/

https://reviews.llvm.org/D67122





More information about the cfe-commits mailing list