diff --git a/src/main.cpp b/src/main.cpp index 2948993..34e71b5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -161,6 +161,14 @@ int main(int argc, char *argv[]) { LOG(ERR) << "Illegal argument value for '--isa': " << isa_opt << std::endl; return 127; } + if(!cpu ){ + LOG(ERR) << "Could not create cpu fore for isa " << isa_opt << " and backend " <()<< std::endl; + return 127; + } + if(!vm ){ + LOG(ERR) << "Could not create vm fore for isa " << isa_opt << " and backend " <()<< std::endl; + return 127; + } if (clim.count("plugin")) { for (std::string const& opt_val : clim["plugin"].as>()) { std::string plugin_name=opt_val;