[PATCH] D40940: [ubsan] Use pass_object_size info in bounds checks

Vedant Kumar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 7 13:55:45 PST 2017


vsk updated this revision to Diff 126037.
vsk added a comment.

Thanks for your feedback.

- Give up on 0-sized types.
- Give up on pass_object_size(2 | 3).


https://reviews.llvm.org/D40940

Files:
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CodeGenFunction.h
  test/CodeGen/ubsan-pass-object-size.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40940.126037.patch
Type: text/x-patch
Size: 4934 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171207/ff0ef391/attachment.bin>


More information about the cfe-commits mailing list