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) {


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to