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/wc.cpp

    r5142 r5176  
    202202
    203203wcFunctionType wcCodeGen(void) {
    204                            
    205     Module * M = new Module("wc", getGlobalContext());
     204    LLVMContext TheContext;                           
     205    Module * M = new Module("wc", TheContext);
    206206    IDISA::IDISA_Builder * idb = IDISA::GetIDISA_Builder(M);
    207207
     
    290290    }
    291291   
    292     delete wcEngine;
    293    
    294292    size_t maxCount = 0;
    295293    if (CountLines) maxCount = TotalLines;
Note: See TracChangeset for help on using the changeset viewer.