Skip to content

Commit 343cd47

Browse files
authored
Preserve comment that was "lost" in reorganization
1 parent 4403a6e commit 343cd47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ void DereferenceChecker::reportBug(const DerefBugType &BT,
177177
CheckerContext &C) const {
178178
if (&BT == &FixedAddressBug) {
179179
if (!FixedDerefChecker.isEnabled())
180+
// Deliberately don't add a sink node if check is disabled.
181+
// This situation may be valid in special cases.
180182
return;
181183
} else {
182184
if (!NullDerefChecker.isEnabled()) {

0 commit comments

Comments
 (0)