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

    r5154 r5176  
    333333
    334334u8u16FunctionType u8u16CodeGen(void) {
    335                            
    336     Module * M = new Module("u8u16", getGlobalContext());
     335    LLVMContext TheContext;                           
     336    Module * M = new Module("u8u16", TheContext);
    337337    IDISA::IDISA_Builder * idb = IDISA::GetIDISA_Builder(M);
    338338
     
    401401    }
    402402
    403     delete u8u16Engine;
    404 
    405403    return 0;
    406404}
Note: See TracChangeset for help on using the changeset viewer.