Changeset 5312 for icGREP/icgrep-devel


Ignore:
Timestamp:
Feb 10, 2017, 5:38:12 PM (3 years ago)
Author:
nmedfort
Message:

Fix for last check in for 32-bit

File:
1 edited

Legend:

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

    r5311 r5312  
    6363    }
    6464    if (mHasLongAdvance) {
    65         mKernel->addScalar(iBuilder->getInt64Ty(), "CarryBlockIndex");
     65        mKernel->addScalar(iBuilder->getSizeTy(), "CarryBlockIndex");
    6666    }
    6767}
     
    9898    if (mHasLongAdvance) {
    9999        Value * idx = mKernel->getScalarField("CarryBlockIndex");
    100         idx = iBuilder->CreateAdd(idx, iBuilder->getInt64(1));
     100        idx = iBuilder->CreateAdd(idx, iBuilder->getSize(1));
    101101        mKernel->setScalarField("CarryBlockIndex", idx);
    102102    }
Note: See TracChangeset for help on using the changeset viewer.