r361097 - MIGChecker - assert we have a non-null LocationContext. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Sat May 18 04:42:19 PDT 2019
Author: rksimon
Date: Sat May 18 04:42:19 2019
New Revision: 361097
URL: http://llvm.org/viewvc/llvm-project?rev=361097&view=rev
Log:
MIGChecker - assert we have a non-null LocationContext. NFCI.
Fixes scan-build warning.
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/MIGChecker.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/MIGChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/MIGChecker.cpp?rev=361097&r1=361096&r2=361097&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/MIGChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/MIGChecker.cpp Sat May 18 04:42:19 2019
@@ -144,6 +144,8 @@ static const ParmVarDecl *getOriginParam
static bool isInMIGCall(CheckerContext &C) {
const LocationContext *LC = C.getLocationContext();
+ assert(LC && "Unknown location context");
+
const StackFrameContext *SFC;
// Find the top frame.
while (LC) {
More information about the cfe-commits
mailing list