summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/translate.cxx b/translate.cxx
index 98c6813b..bda28e8b 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -721,7 +721,10 @@ public:
if (mv.type() != referent_ty)
throw semantic_error("inconsistent iterator type in itervar::next()");
- return "_stp_map_iter (" + mv.qname() + ", " + qname() + ")";
+ if (mv.is_parallel())
+ return "_stp_map_iter (" + mv.fetch_existing_aggregate() + ", " + qname() + ")";
+ else
+ return "_stp_map_iter (" + mv.qname() + ", " + qname() + ")";
}
string qname () const