diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-11 17:49:01 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-11 17:49:01 -0600 |
commit | 6e0af6ef491616b430a419b08ae3f2b6137a8881 (patch) | |
tree | 35b23dd6fbbd82d6dda9151efc6aba37cbbf196a /src/ast | |
parent | a78fdbc93fd8919aacf375cc4d40fdd46a9722a0 (diff) | |
download | chill-6e0af6ef491616b430a419b08ae3f2b6137a8881.tar.gz chill-6e0af6ef491616b430a419b08ae3f2b6137a8881.tar.bz2 chill-6e0af6ef491616b430a419b08ae3f2b6137a8881.zip |
fixes
Diffstat (limited to 'src/ast')
-rw-r--r-- | src/ast/chillASTs.cc | 5 | ||||
-rw-r--r-- | src/ast/node.cpp | 2 |
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", |