diff options
author | Filipe Cabecinhas <me@filcab.net> | 2017-01-06 14:40:12 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2017-01-06 14:40:12 +0000 |
commit | fe5e5afd531bc346c1c9bb41269b46e4fea31c1f (patch) | |
tree | 4f5f229333d88596d8188bac2f1aee725da8e35e /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 12360efa7623b1f279ce02c7f36895b1a65cb6f5 (diff) | |
download | bcm5719-llvm-fe5e5afd531bc346c1c9bb41269b46e4fea31c1f.tar.gz bcm5719-llvm-fe5e5afd531bc346c1c9bb41269b46e4fea31c1f.zip |
[ubsan] Minimize size of data for type_mismatch (Redo of D19667)
Summary:
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.
Reviewers: rsmith, kcc, vitalybuka, pgousseau, gbedwell
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D28242
llvm-svn: 291236
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 1347f54df9a..05522cd4002 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -120,7 +120,7 @@ enum TypeEvaluationKind { SANITIZER_CHECK(OutOfBounds, out_of_bounds, 0) \ SANITIZER_CHECK(ShiftOutOfBounds, shift_out_of_bounds, 0) \ SANITIZER_CHECK(SubOverflow, sub_overflow, 0) \ - SANITIZER_CHECK(TypeMismatch, type_mismatch, 0) \ + SANITIZER_CHECK(TypeMismatch, type_mismatch, 1) \ SANITIZER_CHECK(VLABoundNotPositive, vla_bound_not_positive, 0) enum SanitizerHandler { |