summaryrefslogtreecommitdiff
path: root/src/ast
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast')
-rw-r--r--src/ast/chillASTs.cc5
-rw-r--r--src/ast/node.cpp2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ast/chillASTs.cc b/src/ast/chillASTs.cc
index 60603d2..4181638 100644
--- a/src/ast/chillASTs.cc
+++ b/src/ast/chillASTs.cc
@@ -1986,6 +1986,11 @@ chillAST_Node *chillAST_ParenExpr::clone() {
return PE;
}
+chillAST_Node *chillAST_ParenExpr::constantFold() {
+ chillAST_Node::constantFold();
+ return getSubExpr();
+}
+
chillAST_Sizeof::chillAST_Sizeof(char *athing) {
thing = strdup(athing); // memory leak
}
diff --git a/src/ast/node.cpp b/src/ast/node.cpp
index 6117f91..cad5f4c 100644
--- a/src/ast/node.cpp
+++ b/src/ast/node.cpp
@@ -34,7 +34,7 @@ const char *ChillAST_Node_Names[] = {
"ImplicitCastExpr", // not sure we need this
"ReturnStmt",
"CallExpr",
- "DeclStmt",
+// "DeclStmt",
"ParenExpr",
"CStyleCastExpr",
"CStyleAddressOf",