summaryrefslogtreecommitdiff
path: root/src/ast/chillASTs.cc
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-10-11 17:49:01 -0600
committerTuowen Zhao <ztuowen@gmail.com>2016-10-11 17:49:01 -0600
commit6e0af6ef491616b430a419b08ae3f2b6137a8881 (patch)
tree35b23dd6fbbd82d6dda9151efc6aba37cbbf196a /src/ast/chillASTs.cc
parenta78fdbc93fd8919aacf375cc4d40fdd46a9722a0 (diff)
downloadchill-6e0af6ef491616b430a419b08ae3f2b6137a8881.tar.gz
chill-6e0af6ef491616b430a419b08ae3f2b6137a8881.tar.bz2
chill-6e0af6ef491616b430a419b08ae3f2b6137a8881.zip
fixes
Diffstat (limited to 'src/ast/chillASTs.cc')
-rw-r--r--src/ast/chillASTs.cc5
1 files changed, 5 insertions, 0 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
}