diff options
author | Filipe Cabecinhas <me@filcab.net> | 2017-01-06 14:40:28 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2017-01-06 14:40:28 +0000 |
commit | 56faee71af1888ba12ab076b3d1f9bbe223493df (patch) | |
tree | c50a974d0a2c5494170e1b69d355de48dd6673f1 /lib/ubsan/ubsan_handlers.h | |
parent | 45d6d00c311fab33b6625b4dc52272e398bcad1c (diff) |
[ubsan] Minimize size of data for type_mismatch (Redo of D19668)
Summary: This is the compiler-rt side of D28242.
Reviewers: kcc, vitalybuka, pgousseau, gbedwell
Subscribers: kubabrecka, llvm-commits
Differential Revision: https://reviews.llvm.org/D28244
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@291237 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan/ubsan_handlers.h')
-rw-r--r-- | lib/ubsan/ubsan_handlers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ubsan/ubsan_handlers.h b/lib/ubsan/ubsan_handlers.h index e0cfd5b70..350eb91d1 100644 --- a/lib/ubsan/ubsan_handlers.h +++ b/lib/ubsan/ubsan_handlers.h @@ -20,7 +20,7 @@ namespace __ubsan { struct TypeMismatchData { SourceLocation Loc; const TypeDescriptor &Type; - uptr Alignment; + unsigned char LogAlignment; unsigned char TypeCheckKind; }; @@ -37,7 +37,7 @@ struct TypeMismatchData { /// \brief Handle a runtime type check failure, caused by either a misaligned /// pointer, a null pointer, or a pointer to insufficient storage for the /// type. -RECOVERABLE(type_mismatch, TypeMismatchData *Data, ValueHandle Pointer) +RECOVERABLE(type_mismatch_v1, TypeMismatchData *Data, ValueHandle Pointer) struct OverflowData { SourceLocation Loc; |