summaryrefslogtreecommitdiff
path: root/lib/ubsan/ubsan_handlers.h
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-09-08 20:17:19 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-09-08 20:17:19 +0000
commit0e2758bfa935166c623305e143d8acea3417d508 (patch)
tree18e828057c81e9dbf99a313516c88c44d9a3a6a7 /lib/ubsan/ubsan_handlers.h
parent344b43fc8ffc0ec2e3128c2ffb806a1311bf5341 (diff)
Report source location of returns_nonnull attribute in UBSan reports.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan/ubsan_handlers.h')
-rw-r--r--lib/ubsan/ubsan_handlers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ubsan/ubsan_handlers.h b/lib/ubsan/ubsan_handlers.h
index e4b1b0b4c..49f4ca0e2 100644
--- a/lib/ubsan/ubsan_handlers.h
+++ b/lib/ubsan/ubsan_handlers.h
@@ -125,6 +125,7 @@ RECOVERABLE(function_type_mismatch,
struct NonNullReturnData {
SourceLocation Loc;
+ SourceLocation AttrLoc;
};
/// \brief Handle returning null from function with returns_nonnull attribute.