cmOutputConverter: Assert construction with a valid snapshot

We unconditionally use information from the snapshot so it must be
valid.
This commit is contained in:
Brad King 2016-04-14 11:49:32 -04:00
parent b6ed71b17c
commit c50285dee6
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@
cmOutputConverter::cmOutputConverter(cmState::Snapshot snapshot) cmOutputConverter::cmOutputConverter(cmState::Snapshot snapshot)
: StateSnapshot(snapshot), LinkScriptShell(false) : StateSnapshot(snapshot), LinkScriptShell(false)
{ {
assert(this->StateSnapshot.IsValid());
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------