Ignore:
Timestamp:
Feb 27, 2015, 8:08:05 AM (5 years ago)
Author:
cameron
Message:

Catch std::runtime_error and report; sanitize only on Linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/compiler.cpp

    r4521 r4522  
    167167    install_property_PropList_fn_ptrs(pablo_compiler);
    168168
    169     CompiledPabloFunction retVal = pablo_compiler.compile(main);
    170 
    171     RE::release_memory();
    172     PabloAST::release_memory();
    173 
    174     return retVal;
     169    try {
     170        CompiledPabloFunction retVal = pablo_compiler.compile(main);
     171        RE::release_memory();
     172        PabloAST::release_memory();
     173       
     174        return retVal;
     175    }
     176    catch (std::runtime_error e)
     177    {
     178        std::cerr << "Runtime error: " << e.what() << std::endl;
     179        exit(1);
     180    }
    175181}
    176182
Note: See TracChangeset for help on using the changeset viewer.