summaryrefslogtreecommitdiff
path: root/lib/ubsan/ubsan_diag.h
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2015-12-08 23:29:33 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2015-12-08 23:29:33 +0000
commitfdca75f617fd27f6b866c3f7a873dbfd735b4232 (patch)
treeddae6d93f3cf335aa84604adb7d6c80d2d038098 /lib/ubsan/ubsan_diag.h
parent1e005922d5a4b54d03a2a80fc0c72071601bf449 (diff)
[UBSan] Always calculate ErrorType (kind of UB) before printing a report.
Currently, this is an NFC. However, knowing out the kind of error report before we bring up all the reporting machinery (implemented in ScopedReport class) is important once we teach UBSan runtime suppressions. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@255074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan/ubsan_diag.h')
-rw-r--r--lib/ubsan/ubsan_diag.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ubsan/ubsan_diag.h b/lib/ubsan/ubsan_diag.h
index 2aa62eb74..0bad9a064 100644
--- a/lib/ubsan/ubsan_diag.h
+++ b/lib/ubsan/ubsan_diag.h
@@ -238,9 +238,7 @@ class ScopedReport {
ErrorType Type;
public:
- ScopedReport(ReportOptions Opts, Location SummaryLoc,
- ErrorType Type = ErrorType::GenericUB);
- void setErrorType(ErrorType T) { Type = T; }
+ ScopedReport(ReportOptions Opts, Location SummaryLoc, ErrorType Type);
~ScopedReport();
};