Ignore:
Timestamp:
Nov 11, 2017, 9:46:13 PM (19 months ago)
Author:
cameron
Message:

Changes for compatibility with LLVM 5.0.0

File:
1 edited

Legend:

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

    r5706 r5733  
    3131    PointerType * const selfType = mKernelStateType->getPointerTo();
    3232    IntegerType * const sizeTy = idb->getSizeTy();
    33     PointerType * const consumerTy = StructType::get(sizeTy, sizeTy->getPointerTo()->getPointerTo(), nullptr)->getPointerTo();
     33    PointerType * const consumerTy = StructType::get(idb->getContext(), {sizeTy, sizeTy->getPointerTo()->getPointerTo()})->getPointerTo();
    3434    Type * const voidTy = idb->getVoidTy();
    3535
     
    6464    doSegment->setCallingConv(CallingConv::C);
    6565    doSegment->setDoesNotThrow();
    66     doSegment->setDoesNotCapture(1); // for self parameter only.
    6766    args = doSegment->arg_begin();
    6867    args->setName("self");
     
    9897    terminateFunc->setCallingConv(CallingConv::C);
    9998    terminateFunc->setDoesNotThrow();
    100     terminateFunc->setDoesNotCapture(1);
    10199    args = terminateFunc->arg_begin();
    102100    args->setName("self");
Note: See TracChangeset for help on using the changeset viewer.