Changeset 5384 for icGREP/icgrep-devel


Ignore:
Timestamp:
Mar 30, 2017, 8:28:53 PM (2 years ago)
Author:
cameron
Message:

Fix assertion error: allow lookahed on Extract as well as Var

File:
1 edited

Legend:

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

    r5383 r5384  
    6262        if (LLVM_UNLIKELY(isa<Lookahead>(stmt))) {
    6363            const Lookahead * const la = cast<Lookahead>(stmt);
    64             assert (isa<Var>(la->getExpr()));
     64            assert (isa<Var>(la->getExpr()) || isa<Extract>(la->getExpr()));
    6565            if (LLVM_LIKELY(la->getAmount() > mKernel->getLookAhead())) {
    6666                mKernel->setLookAhead(la->getAmount());
Note: See TracChangeset for help on using the changeset viewer.