diff options
Diffstat (limited to 'gnu/llvm/compiler-rt/lib/ubsan/ubsan_handlers.h')
-rw-r--r-- | gnu/llvm/compiler-rt/lib/ubsan/ubsan_handlers.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/llvm/compiler-rt/lib/ubsan/ubsan_handlers.h b/gnu/llvm/compiler-rt/lib/ubsan/ubsan_handlers.h index 22ca9642238..219fb15de55 100644 --- a/gnu/llvm/compiler-rt/lib/ubsan/ubsan_handlers.h +++ b/gnu/llvm/compiler-rt/lib/ubsan/ubsan_handlers.h @@ -168,6 +168,14 @@ struct InvalidBuiltinData { /// Handle a builtin called in an invalid way. RECOVERABLE(invalid_builtin, InvalidBuiltinData *Data) +struct InvalidObjCCast { + SourceLocation Loc; + const TypeDescriptor &ExpectedType; +}; + +/// Handle an invalid ObjC cast. +RECOVERABLE(invalid_objc_cast, InvalidObjCCast *Data, ValueHandle Pointer) + struct NonNullReturnData { SourceLocation AttrLoc; }; |