summaryrefslogtreecommitdiffstats
path: root/Source/cmFileAPICodemodel.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-03 18:52:33 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-03 18:59:55 (GMT)
commitdbfb50cd72e91000848a12e9e70a066c185828f7 (patch)
treef0ad8210e4ea1a382534daed169ff876e7204a32 /Source/cmFileAPICodemodel.cxx
parent410bf8ed4fb225c0f202c9ccb0859ad8c66065c2 (diff)
downloadCMake-dbfb50cd72e91000848a12e9e70a066c185828f7.zip
CMake-dbfb50cd72e91000848a12e9e70a066c185828f7.tar.gz
CMake-dbfb50cd72e91000848a12e9e70a066c185828f7.tar.bz2
cmFileAPICodemodel: Assert input in DirectoryObject::DumpInstaller
This tells clang-analyzer that the `gen` argument is never `nullptr`.
Diffstat (limited to 'Source/cmFileAPICodemodel.cxx')
-rw-r--r--Source/cmFileAPICodemodel.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmFileAPICodemodel.cxx b/Source/cmFileAPICodemodel.cxx
index ff11f4a..efe1ab6 100644
--- a/Source/cmFileAPICodemodel.cxx
+++ b/Source/cmFileAPICodemodel.cxx
@@ -874,6 +874,7 @@ Json::Value DirectoryObject::DumpInstallers()
Json::Value DirectoryObject::DumpInstaller(cmInstallGenerator* gen)
{
+ assert(gen);
Json::Value installer = Json::objectValue;
// Exclude subdirectory installers. They are implementation details.