summaryrefslogtreecommitdiff
path: root/src/ir_clang.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir_clang.cc')
-rwxr-xr-xsrc/ir_clang.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ir_clang.cc b/src/ir_clang.cc
index 81bdcf7..b5634af 100755
--- a/src/ir_clang.cc
+++ b/src/ir_clang.cc
@@ -3071,10 +3071,10 @@ std::vector<omega::CG_outputRepr *> IR_clangCode::QueryExpOperand(const omega::C
chillAST_BinaryOperator *bop = (chillAST_BinaryOperator *) e;
char *op = bop->op; // TODO enum for operator types
if (!strcmp(op, "=")) {
- v.push_back(new omega::CG_chillRepr(bop->rhs)); // for assign, return RHS
+ v.push_back(new omega::CG_chillRepr(bop->getRHS())); // for assign, return RHS
} else if (!strcmp(op, "+") || !strcmp(op, "-") || !strcmp(op, "*") || !strcmp(op, "/")) {
- v.push_back(new omega::CG_chillRepr(bop->lhs)); // for +*-/ return both lhs and rhs
- v.push_back(new omega::CG_chillRepr(bop->rhs));
+ v.push_back(new omega::CG_chillRepr(bop->getLHS())); // for +*-/ return both lhs and rhs
+ v.push_back(new omega::CG_chillRepr(bop->getRHS()));
} else {
CHILL_ERROR("Binary Operator UNHANDLED op (%s)\n", op);
exit(-1);