From fad36d9324fd13d720bc9366f4de6e968d8b8963 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Sun, 25 Sep 2016 00:52:59 -0600 Subject: dump tested --- lib/chillcg/include/code_gen/CG_chillRepr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chillcg/include/code_gen/CG_chillRepr.h') diff --git a/lib/chillcg/include/code_gen/CG_chillRepr.h b/lib/chillcg/include/code_gen/CG_chillRepr.h index bcc267f..2d6d688 100755 --- a/lib/chillcg/include/code_gen/CG_chillRepr.h +++ b/lib/chillcg/include/code_gen/CG_chillRepr.h @@ -43,7 +43,7 @@ namespace omega { stmtclassname = strdup(chillast->getTypeString()); //fprintf(stderr, "made new chillRepr of class %s\n", stmtclassname); if (chillast->getType() == CHILLAST_NODE_COMPOUNDSTMT) { - std::vector children = chillast->getChildren(); + std::vector &children = *(chillast->getChildren()); int numchildren = children.size(); for (int i = 0; i < numchildren; i++) { chillnodes.push_back(children[i]); -- cgit v1.2.3-70-g09d2