[PATCH] D30283: [ubsan] Reduce alignment checking of C++ object pointers

Vedant Kumar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 12 16:27:25 PDT 2017


vsk updated this revision to Diff 95053.
vsk edited the summary of this revision.
vsk added a comment.

Eli pointed out that it's possible to make alignment checks for extern globals work better (llvm.org/PR32630). One solution depends on emitting alignment checks on bases of member expressions which are DeclRefExprs. I updated this patch so that we'll continue to do that. PTAL.


https://reviews.llvm.org/D30283

Files:
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CGExprCXX.cpp
  lib/CodeGen/CodeGenFunction.cpp
  lib/CodeGen/CodeGenFunction.h
  test/CodeGenCXX/ubsan-global-alignment.cpp
  test/CodeGenCXX/ubsan-suppress-checks.cpp
  test/CodeGenCXX/ubsan-suppress-null-checks.cpp
  test/CodeGenCXX/ubsan-type-checks.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30283.95053.patch
Type: text/x-patch
Size: 21680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170412/6fc6d9c7/attachment-0001.bin>


More information about the cfe-commits mailing list