Merge pull request #280 from isildur-g/bugfix-rose-segfault

the segfault we ran into, included_frag_id should be
This commit is contained in:
Konstantinos Margaritis 2024-05-16 15:41:22 +03:00 committed by GitHub
commit f9df732284
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2984,7 +2984,7 @@ void buildFragmentPrograms(const RoseBuildImpl &build,
pfrag.lit_ids);
if (pfrag.included_delay_frag_id != INVALID_FRAG_ID &&
!rebuild_prog.empty()) {
const auto &cfrag = fragments[pfrag.included_frag_id];
const auto &cfrag = fragments[pfrag.included_delay_frag_id];
/** assert(pfrag.s.length() >= cfrag.s.length() && **/
assert(pfrag.s.length() == cfrag.s.length() &&
!pfrag.s.any_nocase() != !cfrag.s.any_nocase());