summaryrefslogtreecommitdiff
path: root/src/printer
diff options
context:
space:
mode:
Diffstat (limited to 'src/printer')
-rw-r--r--src/printer/cfamily.cpp2
-rw-r--r--src/printer/dump.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/printer/cfamily.cpp b/src/printer/cfamily.cpp
index 8aa6e62..5c56bd7 100644
--- a/src/printer/cfamily.cpp
+++ b/src/printer/cfamily.cpp
@@ -373,7 +373,7 @@ int CFamily::getPrecS(chillAST_UnaryOperator *n) {
void CFamily::printS(std::string ident, chillAST_UnaryOperator *n, std::ostream &o) {
int prec = getPrec(n);
if (n->prefix) o << n->op;
- printPrec(ident, n->subexpr, o, prec);
+ printPrec(ident, n->getSubExpr(), o, prec);
if (!n->prefix) o << n->op;
}
diff --git a/src/printer/dump.cpp b/src/printer/dump.cpp
index 066a2fe..059e56f 100644
--- a/src/printer/dump.cpp
+++ b/src/printer/dump.cpp
@@ -217,7 +217,7 @@ void Dump::printS(std::string ident, chillAST_TernaryOperator *n, std::ostream &
void Dump::printS(std::string ident, chillAST_UnaryOperator *n, std::ostream &o) {
if (n->prefix) o << "prefix ";
else o << "postfix ";
- print(ident, n->subexpr, o);
+ print(ident, n->getSubExpr(), o);
}
void Dump::printS(std::string ident, chillAST_VarDecl *n, std::ostream &o) {