Ignore:
Timestamp:
Jul 13, 2015, 2:11:13 PM (4 years ago)
Author:
cameron
Message:

Upgrade LLVM to 3.6.1

Location:
icGREP/icgrep-devel/llvm-3.6.1.src
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/llvm-3.6.1.src/lib/CodeGen/SelectionDAG/FastISel.cpp

    r4574 r4664  
    498498    const Value *Idx = *OI;
    499499    if (auto *StTy = dyn_cast<StructType>(Ty)) {
    500       unsigned Field = cast<ConstantInt>(Idx)->getZExtValue();
     500      uint64_t Field = cast<ConstantInt>(Idx)->getZExtValue();
    501501      if (Field) {
    502502        // N = N + Offset
     
    519519          continue;
    520520        // N = N + Offset
    521         TotalOffs +=
    522             DL.getTypeAllocSize(Ty) * cast<ConstantInt>(CI)->getSExtValue();
     521        uint64_t IdxN = CI->getValue().sextOrTrunc(64).getSExtValue();
     522        TotalOffs += DL.getTypeAllocSize(Ty) * IdxN;
    523523        if (TotalOffs >= MaxOffs) {
    524524          N = fastEmit_ri_(VT, ISD::ADD, N, NIsKill, TotalOffs, VT);
Note: See TracChangeset for help on using the changeset viewer.