From f3079565844c34b5b50070a764526b6bb9805411 Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Tue, 24 Jan 2017 10:01:59 +1100 Subject: [PATCH] rose: do not combine fragments which squash groups --- src/rose/rose_build_bytecode.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rose/rose_build_bytecode.cpp b/src/rose/rose_build_bytecode.cpp index 6f996979..c87946f2 100644 --- a/src/rose/rose_build_bytecode.cpp +++ b/src/rose/rose_build_bytecode.cpp @@ -4667,6 +4667,12 @@ map groupByFragment(const RoseBuildImpl &build) { continue; } + // Combining fragments that squash their groups is unsafe. + if (info.squash_group) { + final_to_frag.emplace(final_id, frag_id++); + continue; + } + DEBUG_PRINTF("fragment candidate: final_id=%u %s\n", final_id, dumpString(lit.s).c_str()); auto frag = getFragment(lit);