Ignore:
Timestamp:
Apr 21, 2016, 12:18:06 PM (3 years ago)
Author:
cameron
Message:

Some updates for compatibility with LLVM 3.8

File:
1 edited

Legend:

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

    r5008 r5014  
    235235    mDoBlock->setDoesNotThrow();
    236236    Function::arg_iterator args = mDoBlock->arg_begin();
    237     mKernelStateParam = args++;
     237    mKernelStateParam = &*(args++);
    238238    mKernelStateParam->setName("this");
    239239    if (mInputScalarType) {
    240         mInputScalarParam = args++;
     240        mInputScalarParam = &*(args++);
    241241        mInputScalarParam->setName("inputScalars");
    242242    }
    243243    if (mInputStreamType) {
    244244        for (const unsigned offset : mInputStreamOffsets) {
    245             Value * const inputStreamSet = args++;
     245            Value * const inputStreamSet = &*(args++);
    246246            inputStreamSet->setName("inputStreamSet" + std::to_string(offset));
    247247            mInputStreamParam.emplace(offset, inputStreamSet);
     
    249249    }
    250250    if (mOutputScalarType) {
    251         mOutputScalarParam = args++;
     251        mOutputScalarParam = &*(args++);
    252252        mOutputScalarParam->setName("outputScalars");
    253253    }
    254254    if (mOutputStreamType) {
    255         mOutputStreamParam = args;
     255        mOutputStreamParam = &*args;
    256256        mOutputStreamParam->setName("outputStreamSet");
    257257    }
Note: See TracChangeset for help on using the changeset viewer.