summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-14 15:49:32 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-15 12:34:05 (GMT)
commitc50285dee66394b68eb3df17d190072289a33a4e (patch)
tree6ec627b59722ca1fd6fa7b10310068e5e4aa68c1 /Source
parentb6ed71b17c888c5f79129871bf7bc865b43063e3 (diff)
downloadCMake-c50285dee66394b68eb3df17d190072289a33a4e.zip
CMake-c50285dee66394b68eb3df17d190072289a33a4e.tar.gz
CMake-c50285dee66394b68eb3df17d190072289a33a4e.tar.bz2
cmOutputConverter: Assert construction with a valid snapshot
We unconditionally use information from the snapshot so it must be valid.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmOutputConverter.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx
index 5acae2f..59fb2e9 100644
--- a/Source/cmOutputConverter.cxx
+++ b/Source/cmOutputConverter.cxx
@@ -22,6 +22,7 @@
cmOutputConverter::cmOutputConverter(cmState::Snapshot snapshot)
: StateSnapshot(snapshot), LinkScriptShell(false)
{
+ assert(this->StateSnapshot.IsValid());
}
//----------------------------------------------------------------------------