Ignore:
Timestamp:
Feb 15, 2017, 4:08:37 PM (2 years ago)
Author:
nmedfort
Message:

memcpy/memset support for 32-bit systems; more error messages/handling; bug fix for ParabixCharacterClassKernelBuilder?. continued work on parenthesis matching + expandable buffers.

File:
1 edited

Legend:

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

    r5267 r5320  
    9292// and signal error code 2 (grep convention).
    9393//
    94 static void icgrep_error_handler(void *UserData, const std::string &Message,
    95                              bool GenCrashDiag) {
    96 
     94static void icgrep_error_handler(void *UserData, const std::string &Message, bool GenCrashDiag) {
     95    #ifndef NDEBUG
     96    throw std::runtime_error(Message);
     97    #else
    9798    // Modified from LLVM's internal report_fatal_error logic.
    9899    SmallVector<char, 64> Buffer;
     
    102103    ssize_t written = ::write(2, MessageStr.data(), MessageStr.size());
    103104    (void)written; // If something went wrong, we deliberately just give up.
    104 
    105105    // Run the interrupt handlers to make sure any special cleanups get done, in
    106106    // particular that we remove files registered with RemoveFileOnSignal.
    107107    llvm::sys::RunInterruptHandlers();
    108108    exit(2);
     109    #endif
    109110}
    110111
Note: See TracChangeset for help on using the changeset viewer.