rose: only use anch history when there are bounds

This commit is contained in:
Justin Viiret 2016-07-11 11:44:57 +10:00 committed by Matthew Barr
parent f55e968692
commit 8d31607556

View File

@ -453,7 +453,8 @@ RoseRoleHistory findHistoryScheme(const RoseBuildImpl &tbi, const RoseEdge &e) {
return ROSE_ROLE_HISTORY_NONE;
}
if (g[u].fixedOffset()) {
if (g[u].fixedOffset() &&
(g[e].minBound || g[e].maxBound != ROSE_BOUND_INF)) {
DEBUG_PRINTF("fixed offset -> anch\n");
return ROSE_ROLE_HISTORY_ANCH;
}