Ignore:
Timestamp:
Apr 23, 2017, 3:46:44 PM (2 years ago)
Author:
nmedfort
Message:

Bug fix for mmap-ing 0-length files

File:
1 edited

Legend:

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

    r5420 r5421  
    230230    ConstantInt * const prot =  ConstantInt::get(intTy, PROT_READ);
    231231    ConstantInt * const flags =  ConstantInt::get(intTy, MAP_PRIVATE);
    232     Constant * const offset = ConstantInt::get(sizeTy, 0);
     232    Constant * const offset = ConstantInt::get(sizeTy, 0);       
    233233    return CreateMMap(ConstantPointerNull::getNullValue(voidPtrTy), size, prot, flags, fd, offset);
    234234}
     
    273273 *      without an underlying file.
    274274 *
    275  * @return Value indicating success (0) or failure (non-zero).
     275 * @return Value indicating success (0) or failure (-1).
    276276 */
    277277Value * CBuilder::CreateMAdvise(Value * addr, Value * length, Advice advice) {
Note: See TracChangeset for help on using the changeset viewer.