summaryrefslogtreecommitdiff
path: root/lib/chillcg/src/CG_chillBuilder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chillcg/src/CG_chillBuilder.cc')
-rwxr-xr-xlib/chillcg/src/CG_chillBuilder.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chillcg/src/CG_chillBuilder.cc b/lib/chillcg/src/CG_chillBuilder.cc
index 7f13334..27d0af2 100755
--- a/lib/chillcg/src/CG_chillBuilder.cc
+++ b/lib/chillcg/src/CG_chillBuilder.cc
@@ -103,8 +103,8 @@ namespace omega {
// b->print(); printf("\n"); fflush(stdout);
//}
- chillAST_Node *lhs = b->lhs;
- chillAST_Node *rhs = b->rhs;
+ chillAST_Node *lhs = b->getLHS();
+ chillAST_Node *rhs = b->getRHS();
//if (!strcmp(b->op, "=") && rhs->isBinaryOperator() ) {
// chillAST_BinaryOperator *r = (chillAST_BinaryOperator *) rhs;
@@ -116,8 +116,8 @@ namespace omega {
//rhs->dump(); printf("\n"); fflush(stdout);
- b->lhs = substituteChill( oldvar, newvar, lhs, b);
- b->rhs = substituteChill( oldvar, newvar, rhs, b);
+ b->setLHS(substituteChill( oldvar, newvar, lhs, b));
+ b->setRHS(substituteChill( oldvar, newvar, rhs, b));
return b;
}