From c50285dee66394b68eb3df17d190072289a33a4e Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 14 Apr 2016 11:49:32 -0400 Subject: cmOutputConverter: Assert construction with a valid snapshot We unconditionally use information from the snapshot so it must be valid. --- Source/cmOutputConverter.cxx | 1 + 1 file changed, 1 insertion(+) 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()); } //---------------------------------------------------------------------------- -- cgit v0.12