summaryrefslogtreecommitdiff
path: root/lib/chillcg
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chillcg')
-rwxr-xr-xlib/chillcg/include/code_gen/CG_chillRepr.h2
1 files changed, 1 insertions, 1 deletions
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<chillAST_Node *> children = chillast->getChildren();
+ std::vector<chillAST_Node *> &children = *(chillast->getChildren());
int numchildren = children.size();
for (int i = 0; i < numchildren; i++) {
chillnodes.push_back(children[i]);