summaryrefslogtreecommitdiff
path: root/src/printer/dump.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/printer/dump.cpp')
-rw-r--r--src/printer/dump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/printer/dump.cpp b/src/printer/dump.cpp
index cd4c316..ca208ab 100644
--- a/src/printer/dump.cpp
+++ b/src/printer/dump.cpp
@@ -24,6 +24,7 @@ void dumpVector(GenericPrinter *p, string ident, chillAST_TypedefTable *n, ostre
}
void Dump::print(string ident, chillAST_Node *n, ostream &o) {
+ if (!n) return;
o << "(" << n->getTypeString() << " ";
if (n->getParameters()) {
o << "(Params: ";
@@ -70,8 +71,7 @@ void Dump::printS(std::string ident, chillAST_BinaryOperator *n, std::ostream &o
}
void Dump::printS(std::string ident, chillAST_CallExpr *n, std::ostream &o) {
- if (n->getCallee())
- print(ident, n->getCallee(), o);
+ dumpVector(this,ident,n->getChildren(),o);
}
void Dump::printS(std::string ident, chillAST_CompoundStmt *n, std::ostream &o) {