We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3732953 + 91f2582 commit 7c271afCopy full SHA for 7c271af
src/util/merge_irep.cpp
@@ -200,6 +200,17 @@ const irept& merge_irept::merged(const irept &irep)
200
dest_named_sub[it->first]=merged(it->second); // recursive call
201
#endif
202
203
+ const irept::named_subt &src_comments=irep.get_comments();
204
+ irept::named_subt &dest_comments=new_irep.get_comments();
205
+
206
+ forall_named_irep(it, src_comments)
207
+ #ifdef SUB_IS_LIST
208
+ dest_comments.push_back(
209
+ std::make_pair(it->first, merged(it->second))); // recursive call
210
+ #else
211
+ dest_comments[it->first]=merged(it->second); // recursive call
212
+ #endif
213
214
return *irep_store.insert(new_irep).first;
215
}
216
0 commit comments