diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-10 14:21:32 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-10 14:21:32 -0600 |
commit | cdc4acd98d063628b03a80b9bde7eff3ce53c2d7 (patch) | |
tree | 4b645eaff024504710bbc7196d10787e127acb85 | |
parent | 2ad566cc7b125a8e7687dd260b71d49eddc9b03e (diff) | |
download | chill-cdc4acd98d063628b03a80b9bde7eff3ce53c2d7.tar.gz chill-cdc4acd98d063628b03a80b9bde7eff3ce53c2d7.tar.bz2 chill-cdc4acd98d063628b03a80b9bde7eff3ce53c2d7.zip |
fixes null pointer for if
-rwxr-xr-x | lib/chillcg/src/CG_chillBuilder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chillcg/src/CG_chillBuilder.cc b/lib/chillcg/src/CG_chillBuilder.cc index 045320f..185372a 100755 --- a/lib/chillcg/src/CG_chillBuilder.cc +++ b/lib/chillcg/src/CG_chillBuilder.cc @@ -25,8 +25,8 @@ namespace omega { // substitute at chill AST level chillAST_Node *substituteChill( const char *oldvar, CG_chillRepr *newvar, chillAST_Node *n, chillAST_Node *parent = NULL ) { if (n == NULL) { - CG_ERROR(" pointer n == NULL\n"); - exit(-1); + CG_DEBUG_PRINT(" pointer n == NULL\n"); + return NULL; } chillAST_Node *r = n; |