Ignore:
Timestamp:
Jun 2, 2015, 11:43:13 AM (4 years ago)
Author:
nmedfort
Message:

More multiplexing work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/slab_allocator.h

    r4536 r4586  
    1212    template <typename T>
    1313    static inline T * Allocate(const size_t n) {
    14         return mAllocator.Allocate<T>(n);
     14        return static_cast<T*>(mAllocator.Allocate(n * sizeof(T), sizeof(void*)));
    1515    }
    1616    template <typename T>
     
    2828    }
    2929private:
    30     static llvm::BumpPtrAllocator mAllocator;
     30    static LLVMAllocator mAllocator;
    3131};
    3232
Note: See TracChangeset for help on using the changeset viewer.