diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-30 13:25:57 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-30 13:25:57 -0600 |
commit | 87e7538503756d036fec4c2b18a9c19d126626a4 (patch) | |
tree | 9a3832c1dda7c785905cbcc619bacfbd07d8bf2a /lib/chillcg/src/CG_chillBuilder.cc | |
parent | f00e425e1d6ee51027e6ba66d0a82355fd788f9e (diff) | |
download | chill-87e7538503756d036fec4c2b18a9c19d126626a4.tar.gz chill-87e7538503756d036fec4c2b18a9c19d126626a4.tar.bz2 chill-87e7538503756d036fec4c2b18a9c19d126626a4.zip |
Binary Ternary
Diffstat (limited to 'lib/chillcg/src/CG_chillBuilder.cc')
-rwxr-xr-x | lib/chillcg/src/CG_chillBuilder.cc | 8 |
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; } |