fix for recent smart pointer change

This commit is contained in:
Vern Paxson 2023-07-13 11:38:27 -07:00
parent b6bff8aa37
commit cc059f6b51

View file

@ -951,7 +951,7 @@ void WhenInfo::UpdateIDs(Reducer* c)
StmtPtr WhenStmt::Duplicate()
{
return SetSucc(new WhenStmt(wi));
return SetSucc(new WhenStmt(std::make_shared<WhenInfo>(wi.get())));
}
bool WhenStmt::IsReduced(Reducer* c) const