forked from OSchip/llvm-project
When generating error node, check to see if we already cached out.
llvm-svn: 97115
This commit is contained in:
parent
9ac3092d34
commit
5563dea713
|
@ -98,6 +98,9 @@ static void CheckOpen(CheckerContext &C, const CallExpr *CE, BugType *&BT) {
|
||||||
|
|
||||||
if (CE->getNumArgs() < 3) {
|
if (CE->getNumArgs() < 3) {
|
||||||
ExplodedNode *N = C.GenerateSink(trueState);
|
ExplodedNode *N = C.GenerateSink(trueState);
|
||||||
|
if (!N)
|
||||||
|
return;
|
||||||
|
|
||||||
EnhancedBugReport *report =
|
EnhancedBugReport *report =
|
||||||
new EnhancedBugReport(*BT,
|
new EnhancedBugReport(*BT,
|
||||||
"Call to 'open' requires a third argument when "
|
"Call to 'open' requires a third argument when "
|
||||||
|
|
Loading…
Reference in New Issue