Ignore:
Timestamp:
Oct 4, 2016, 6:05:21 AM (3 years ago)
Author:
cameron
Message:

Engine deletion causes segfaults with LLVM 3.9 changes

File:
1 edited

Legend:

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

    r5173 r5176  
    270270preprocessFunctionType preprocessCodeGen() {
    271271                           
    272     Module * M = new Module("preprocess", getGlobalContext());
     272    LLVMContext TheContext;
     273    Module * M = new Module("preprocess", TheContext);
    273274    IDISA::IDISA_Builder * idb = IDISA::GetIDISA_Builder(M);
    274275
     
    302303editdFunctionType editdCodeGen() {
    303304                           
    304     Module * M = new Module("editd", getGlobalContext());
     305    Module * M = new Module("editd", TheContext);
    305306    IDISA::IDISA_Builder * idb = IDISA::GetIDISA_Builder(M);
    306307
     
    397398        run_second_filter(pattern_segs, total_len, 0.15);
    398399
    399     delete editdEngine;
    400     delete preprocessEngine;
    401400
    402401    return 0;
Note: See TracChangeset for help on using the changeset viewer.