Add assertion to IKnobCollection::setGlobalKnobCollection
This commit is contained in:
parent
3b1ae39403
commit
8ae49c18eb
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue