diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-26 18:09:19 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-26 18:09:19 -0600 |
commit | 3f75a3cd12eb4eb2f34a5b6e07f82e7ebf51fe03 (patch) | |
tree | f4e7ea2f7a2128ad24e26c98055fa515a7761b13 /src/chillmodule.cc | |
parent | 15e8ff480e7a75f4dce8c8d41da157cf51bd3cb8 (diff) | |
download | chill-3f75a3cd12eb4eb2f34a5b6e07f82e7ebf51fe03.tar.gz chill-3f75a3cd12eb4eb2f34a5b6e07f82e7ebf51fe03.tar.bz2 chill-3f75a3cd12eb4eb2f34a5b6e07f82e7ebf51fe03.zip |
rinning
Diffstat (limited to 'src/chillmodule.cc')
-rw-r--r-- | src/chillmodule.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chillmodule.cc b/src/chillmodule.cc index 5e78be3..591b77e 100644 --- a/src/chillmodule.cc +++ b/src/chillmodule.cc @@ -332,13 +332,13 @@ static void add_known(std::string cond_expr) { GEQ_Handle h = f_root->add_GEQ(); for (std::map<std::string, int>::iterator it = (*cond)[j].begin(); it != (*cond)[j].end(); it++) { try { - int dim = from_string<int>(it->first); + int dim = std::stoi(it->first); if (dim == 0) h.update_const(it->second); else throw std::invalid_argument("only symbolic variables are allowed in known condition"); } - catch (std::ios::failure e) { + catch (std::invalid_argument &e) { Free_Var_Decl *g = NULL; for (unsigned i = 0; i < myloop->freevar.size(); i++) { std::string name = myloop->freevar[i]->base_name(); |