Ignore:
Timestamp:
Jun 4, 2015, 12:01:18 PM (4 years ago)
Author:
cameron
Message:

Block counting fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.cpp

    r4589 r4593  
    170170   
    171171    // The block number is a 64-bit integer at the end of the carry data area.
    172     Value * blockNoPtr = b.CreateBitCast(b.CreateGEP(mCarryDataPtr, b.getInt64(totalCarryDataSize)), Type::getInt64PtrTy(b.getContext()));
     172    Value * blockNoPtr = b.CreateBitCast(b.CreateGEP(mCarryDataPtr, b.getInt64(totalCarryDataSize - 1)), Type::getInt64PtrTy(b.getContext()));
    173173    mBlockNo = b.CreateLoad(blockNoPtr);
    174174    //Generate the IR instructions for the function.
Note: See TracChangeset for help on using the changeset viewer.