Ignore:
Timestamp:
Feb 3, 2018, 6:44:46 AM (19 months ago)
Author:
cameron
Message:

Bug fix for DirectCC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/cc_compiler.cpp

    r5847 r5859  
    1515#include <llvm/IR/DerivedTypes.h>
    1616#include <llvm/Support/ErrorHandling.h>
     17#include <llvm/Support/raw_ostream.h>
    1718
    1819using namespace re;
     
    237238    }
    238239    unsigned codeUnitWidth = cast<const CodeUnitAlphabet>(a)->getCodeUnitBitWidth();
    239     unsigned topBit = 1 << codeUnitWidth;
     240    unsigned topBit = 1 << (codeUnitWidth - 1);
    240241    unsigned maxCodeVal = (topBit - 1) | topBit;
    241242    PabloAST * ccStrm = pb.createZeroes();
Note: See TracChangeset for help on using the changeset viewer.