summaryrefslogtreecommitdiff
path: root/lib/ubsan/ubsan_diag.h
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-09-19 18:33:45 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-09-19 18:33:45 +0000
commita82d43abfe5ac2c3067bbd71a17bb94cd5d4ba1f (patch)
treee98c5bf0b48130caef75e09a8f8b2c72aefe235b /lib/ubsan/ubsan_diag.h
parent2bc599a96d1e7cb308b470fa18f6df45e7561a50 (diff)
[UBSan] Optionally report summary in UBSan error reports.
By default summary is not printed if UBSan is run in a standalone mode, but is printed if it's combined with another sanitizer (like ASan). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@218135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan/ubsan_diag.h')
-rw-r--r--lib/ubsan/ubsan_diag.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ubsan/ubsan_diag.h b/lib/ubsan/ubsan_diag.h
index b2fe735a2..296ec0d3f 100644
--- a/lib/ubsan/ubsan_diag.h
+++ b/lib/ubsan/ubsan_diag.h
@@ -223,9 +223,10 @@ struct ReportOptions {
/// different sanitizers won't be mixed.
class ScopedReport {
ReportOptions Opts;
+ Location SummaryLoc;
public:
- ScopedReport(ReportOptions Opts);
+ ScopedReport(ReportOptions Opts, Location SummaryLoc);
~ScopedReport();
};