Add assertion to IKnobCollection::setGlobalKnobCollection

This commit is contained in:
sfc-gh-tclinkenbeard 2021-11-16 01:28:16 -08:00
parent 3b1ae39403
commit 8ae49c18eb
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ std::unique_ptr<IKnobCollection>& IKnobCollection::globalKnobCollection() {
void IKnobCollection::setGlobalKnobCollection(Type type, Randomize randomize, IsSimulated isSimulated) {
globalKnobCollection() = create(type, randomize, isSimulated);
ASSERT(FLOW_KNOBS == &bootstrapGlobalFlowKnobs);
FLOW_KNOBS = &globalKnobCollection()->getFlowKnobs();
}