Ignore:
Timestamp:
Dec 8, 2018, 10:35:24 AM (5 months ago)
Author:
cameron
Message:

Trace facility initial check-in

File:
1 edited

Legend:

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

    r6216 r6220  
    173173        Value * byteStreamBasePtr = kb->getInputStreamBlockPtr("byteStream", ZERO, ZERO);
    174174        Value * ptrToNull = kb->CreateMemChr(kb->CreatePointerCast(byteStreamBasePtr, voidPtrTy), kb->getInt32(0), itemsToDo);
    175         Value * nullInFile = kb->CreateICmpNE(ptrToNull, ZERO);
     175        Value * nullInFile = kb->CreateICmpNE(ptrToNull, ConstantPointerNull::get(cast<PointerType>(ptrToNull->getType())));
    176176        kb->CreateCondBr(nullInFile, nullInFileDetected, s2pExit);
    177177        kb->SetInsertPoint(nullInFileDetected);
Note: See TracChangeset for help on using the changeset viewer.