MIGChecker - assert we have a non-null LocationContext. NFCI.

Fixes scan-build warning.

llvm-svn: 361097
This commit is contained in:
Simon Pilgrim 2019-05-18 11:42:19 +00:00
parent 4c146ab8c4
commit 3e95568dcf
1 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,8 @@ static const ParmVarDecl *getOriginParam(SVal V, CheckerContext &C,
static bool isInMIGCall(CheckerContext &C) {
const LocationContext *LC = C.getLocationContext();
assert(LC && "Unknown location context");
const StackFrameContext *SFC;
// Find the top frame.
while (LC) {