Ignore:
Timestamp:
Dec 8, 2017, 1:55:22 AM (18 months ago)
Author:
nmedfort
Message:

Cache signature is now written into .kernel bitcode file. Minor bug fix and revision of GrepEngine::DoGrepThreadMethod?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.cpp

    r5757 r5761  
    966966#endif
    967967
    968 void CBuilder::__CreateAssert(Value * const assertion, StringRef failureMessage) {
     968void CBuilder::__CreateAssert(Value * const assertion, const Twine failureMessage) {
    969969    if (LLVM_UNLIKELY(isa<Constant>(assertion))) {
    970970        if (LLVM_UNLIKELY(cast<Constant>(assertion)->isNullValue())) {
     
    10781078            trace = CreatePointerCast(trace, stackPtrTy);
    10791079            depth = getInt32(n);
    1080         }
    1081         IRBuilder<>::CreateCall(function, {assertion, GetString(failureMessage), trace, depth});
     1080        }       
     1081        SmallVector<char, 1024> tmp;
     1082        IRBuilder<>::CreateCall(function, {assertion, GetString(failureMessage.toStringRef(tmp)), trace, depth});
    10821083    } else { // if assertions are not enabled, make it a compiler assumption.
    10831084        IRBuilder<>::CreateAssumption(assertion);
Note: See TracChangeset for help on using the changeset viewer.