Ignore:
Timestamp:
Jun 9, 2017, 5:39:30 PM (2 years ago)
Author:
cameron
Message:

Jenkins issues test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.cpp

    r5493 r5498  
    2121#include <unistd.h>
    2222#include <stdio.h>
     23
     24#if defined(__i386__)
     25typedef uint32_t unw_word_t;
     26#else
     27typedef uint64_t unw_word_t;
     28#endif
    2329#if defined(HAS_MACH_VM_TYPES)
    2430#include <mach/vm_types.h>
     
    496502
    497503PointerType * CBuilder::getVoidPtrTy() const {
    498     return TypeBuilder<void *, false>::get(getContext());
     504    return TypeBuilder<void *, true>::get(getContext());
    499505}
    500506
     
    818824        }
    819825
    820         SmallVector<uint64_t, 64> stack;
     826        SmallVector<unw_word_t, 64> stack;
    821827        #if defined(HAS_MACH_VM_TYPES)
    822828        for (;;) {
     
    882888            }
    883889            if (LLVM_LIKELY(trace == nullptr)) {
    884                 Constant * const initializer = ConstantDataArray::get(getContext(), ArrayRef<uint64_t>(stack.data() + 1, n));
     890                Constant * const initializer = ConstantDataArray::get(getContext(), ArrayRef<unw_word_t>(stack.data() + 1, n));
    885891                trace = new GlobalVariable(*m, initializer->getType(), true, GlobalVariable::InternalLinkage, initializer);
    886892            }
Note: See TracChangeset for help on using the changeset viewer.