[PATCH] D34121: [ubsan] Teach the pointer overflow check that "p - <unsigned> <= p" (PR33430)

Vedant Kumar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 14 13:53:51 PDT 2017


vsk updated this revision to Diff 102603.
vsk marked an inline comment as done.
vsk added a comment.

Address Adrian's comment about using an enum to simplify some calls.


https://reviews.llvm.org/D34121

Files:
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CGExprScalar.cpp
  lib/CodeGen/CodeGenFunction.h
  test/CodeGen/ubsan-pointer-overflow.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34121.102603.patch
Type: text/x-patch
Size: 9104 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170614/32c13748/attachment-0001.bin>


More information about the cfe-commits mailing list