[PATCH] D37597: [ubsan] Function Sanitizer: Don't require writable text segments

Vedant Kumar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 7 18:57:34 PDT 2017


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

Address review feedback:

- Enable this change on all platforms.
- Bump the function signature version.
- Store the indirect RTTI pointer as an IntPtrTy. This saves a "ptrtoint" instruction. Truncating to Int32Ty should be possible, but causes dyld to crash, and also requires an extra sign-extension.


https://reviews.llvm.org/D37597

Files:
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CodeGenFunction.cpp
  lib/CodeGen/CodeGenFunction.h
  lib/CodeGen/TargetInfo.cpp
  test/CodeGenCXX/catch-undef-behavior.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37597.114303.patch
Type: text/x-patch
Size: 9628 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170908/679d5275/attachment.bin>


More information about the cfe-commits mailing list