summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp
diff options
context:
space:
mode:
authorVlad Tsyrklevich <vlad@tsyrklevich.net>2019-01-18 08:43:22 +0000
committerVlad Tsyrklevich <vlad@tsyrklevich.net>2019-01-18 08:43:22 +0000
commitd5dd6a5fdd0998a4b1c4f273bfa5b2936e4ec739 (patch)
tree6e09b3990027aa373083514c7cbbf429311729fa /clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp
parente84c729aca49c5b8397ba96686bb4e019a95cd37 (diff)
downloadbcm5719-llvm-d5dd6a5fdd0998a4b1c4f273bfa5b2936e4ec739.tar.gz
bcm5719-llvm-d5dd6a5fdd0998a4b1c4f273bfa5b2936e4ec739.zip
Fix failing MSan bots
Revert r351508-351514, this block of changes introduced a consistent MSan failure on the sanitizer bots. llvm-svn: 351528
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp
index 46b584c7264..819d437e688 100644
--- a/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp
@@ -109,10 +109,10 @@ SimpleStreamChecker::SimpleStreamChecker()
DoubleCloseBugType.reset(
new BugType(this, "Double fclose", "Unix Stream API Error"));
- // Sinks are higher importance bugs as well as calls to assert() or exit(0).
LeakBugType.reset(
- new BugType(this, "Resource Leak", "Unix Stream API Error",
- /*SuppressOnSink=*/true));
+ new BugType(this, "Resource Leak", "Unix Stream API Error"));
+ // Sinks are higher importance bugs as well as calls to assert() or exit(0).
+ LeakBugType->setSuppressOnSink(true);
}
void SimpleStreamChecker::checkPostCall(const CallEvent &Call,
OpenPOWER on IntegriCloud