From 87e7538503756d036fec4c2b18a9c19d126626a4 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Fri, 30 Sep 2016 13:25:57 -0600 Subject: Binary Ternary --- include/ir_clang.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ir_clang.hh') diff --git a/include/ir_clang.hh b/include/ir_clang.hh index 81a6fde..9b9e4be 100755 --- a/include/ir_clang.hh +++ b/include/ir_clang.hh @@ -149,7 +149,7 @@ struct IR_chillScalarRef : public IR_ScalarRef { dre = NULL; //bop = ins; // do we need this? if (pos == OP_LEFT) { - chillAST_Node *lhs = ins->lhs; + chillAST_Node *lhs = ins->getLHS(); if (lhs->isDeclRefExpr()) { chillAST_DeclRefExpr *DRE = (chillAST_DeclRefExpr *) lhs; dre = DRE; @@ -161,7 +161,7 @@ struct IR_chillScalarRef : public IR_ScalarRef { exit(-1); } } else { - chillAST_Node *rhs = ins->rhs; + chillAST_Node *rhs = ins->getRHS(); if (rhs->isDeclRefExpr()) { chillAST_DeclRefExpr *DRE = (chillAST_DeclRefExpr *) rhs; dre = DRE; -- cgit v1.2.3-70-g09d2