[PATCH] D28242: [ubsan] Minimize size of data for type_mismatch (Redo of D19667)

Filipe Cabecinhas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 3 10:33:26 PST 2017


filcab created this revision.
filcab added reviewers: rsmith, kcc, vitalybuka, pgousseau, gbedwell.
filcab added a subscriber: llvm-commits.

This patch makes the type_mismatch static data 7 bytes smaller (and it
ends up being 16 bytes smaller due to alignment restrictions, at least
on some x86-64 environments).

It revs up the type_mismatch handler version since we're breaking binary
compatibility. I will soon post a patch for the compiler-rt side.


https://reviews.llvm.org/D28242

Files:
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CodeGenFunction.h
  test/CodeGen/catch-undef-behavior.c
  test/CodeGen/sanitize-recover.c
  test/CodeGenCXX/ubsan-vtable-checks.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28242.82913.patch
Type: text/x-patch
Size: 7441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170103/bfb1b188/attachment.bin>


More information about the llvm-commits mailing list