From 87f475a3297743cfab6fb6a3bbacd1a08e256df1 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 24 Jun 2010 16:26:12 +0000 Subject: [PATCH] Return null pointer instead of 'false' (fixes clang warning). llvm-svn: 106755 --- clang/lib/Checker/StreamChecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Checker/StreamChecker.cpp b/clang/lib/Checker/StreamChecker.cpp index 98d6993cbf46..c527ca24496f 100644 --- a/clang/lib/Checker/StreamChecker.cpp +++ b/clang/lib/Checker/StreamChecker.cpp @@ -267,7 +267,7 @@ const GRState *StreamChecker::CheckNullStream(SVal SV, const GRState *state, CheckerContext &C) { const DefinedSVal *DV = dyn_cast(&SV); if (!DV) - return false; + return 0; ConstraintManager &CM = C.getConstraintManager(); const GRState *stateNotNull, *stateNull;