Ignore:
Timestamp:
Dec 9, 2017, 5:05:16 PM (14 months ago)
Author:
nmedfort
Message:

Minor changes and hopefully a fix for bug exposed by base64 test

File:
1 edited

Legend:

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

    r5761 r5771  
    236236    virtual llvm::StoreInst *  CreateAtomicStoreRelease(llvm::Value * val, llvm::Value * ptr);
    237237
    238     void CreateAssert(llvm::Value * assertion, const llvm::Twine failureMessage) {
     238    void CreateAssert(llvm::Value * assertion, const llvm::Twine & failureMessage) {
    239239        if (LLVM_UNLIKELY(assertion->getType()->isVectorTy())) {
    240240            assertion = CreateBitCast(assertion, getIntNTy(assertion->getType()->getPrimitiveSizeInBits()));
     
    243243    }
    244244
    245     void CreateAssertZero(llvm::Value * assertion, const llvm::Twine failureMessage) {
     245    void CreateAssertZero(llvm::Value * assertion, const llvm::Twine & failureMessage) {
    246246        if (LLVM_UNLIKELY(assertion->getType()->isVectorTy())) {
    247247            assertion = CreateBitCast(assertion, getIntNTy(assertion->getType()->getPrimitiveSizeInBits()));
     
    355355    bool hasAddressSanitizer() const;
    356356
    357     void __CreateAssert(llvm::Value * assertion, const llvm::Twine failureMessage);
     357    void __CreateAssert(llvm::Value * assertion, const llvm::Twine & failureMessage);
    358358
    359359    llvm::Function * LinkFunction(llvm::StringRef name, llvm::FunctionType * type, void * functionPtr) const;
Note: See TracChangeset for help on using the changeset viewer.