[analyzer] Corrected the switch statement.

llvm-svn: 178831
This commit is contained in:
Anton Yartsev 2013-04-05 02:12:04 +00:00
parent 5d5c49cef6
commit 2f91004b64
1 changed files with 3 additions and 6 deletions

View File

@ -1072,22 +1072,19 @@ bool MallocChecker::isTrackedFamily(AllocationFamily Family) const {
case AF_Malloc: {
if (!Filter.CMallocOptimistic && !Filter.CMallocPessimistic)
return false;
break;
return true;
}
case AF_CXXNew:
case AF_CXXNewArray: {
if (!Filter.CNewDeleteChecker)
return false;
break;
return true;
}
case AF_None: {
return true;
}
default:
llvm_unreachable("unhandled family");
}
return true;
llvm_unreachable("unhandled family");
}
bool MallocChecker::isTrackedFamily(CheckerContext &C,