summaryrefslogtreecommitdiff
path: root/src/chillmodule.cc
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-09-22 01:03:57 -0600
committerTuowen Zhao <ztuowen@gmail.com>2016-09-22 01:03:57 -0600
commitefda1444166c8d4f8dd7d7b085868f1596b3b9fb (patch)
tree6ea0d275467b65c15956af7913a70991a3a957e3 /src/chillmodule.cc
parentbc796e8d5a10352941d606df516f976b15fb32fc (diff)
downloadchill-efda1444166c8d4f8dd7d7b085868f1596b3b9fb.tar.gz
chill-efda1444166c8d4f8dd7d7b085868f1596b3b9fb.tar.bz2
chill-efda1444166c8d4f8dd7d7b085868f1596b3b9fb.zip
more clang hack
Diffstat (limited to 'src/chillmodule.cc')
-rw-r--r--src/chillmodule.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/chillmodule.cc b/src/chillmodule.cc
index 291cb51..fa6e001 100644
--- a/src/chillmodule.cc
+++ b/src/chillmodule.cc
@@ -80,6 +80,7 @@ static void init_loop(int loop_num_start, int loop_num_end) {
}
else {
if (ir_code == NULL) {
+ ir_code = new IR_clangCode(source_filename.c_str(),procedure_name.c_str());
IR_Block *block = ir_code->GetCode();
ir_controls = ir_code->FindOneLevelControlStructure(block);
for (int i = 0; i < ir_controls.size(); i++) {