diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/iMemory.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/iMemory.cpp b/lib/VMCore/iMemory.cpp index 72af71f..eefeeef 100644 --- a/lib/VMCore/iMemory.cpp +++ b/lib/VMCore/iMemory.cpp @@ -86,8 +86,7 @@ StoreInst::StoreInst(Value *Val, Value *Ptr, const vector<ConstPoolVal*> &Idx, GetElementPtrInst::GetElementPtrInst(Value *Ptr, const vector<ConstPoolVal*> &Idx, const string &Name = "") - : MemAccessInst(PointerType::getPointerType(getIndexedType(Ptr->getType(), - Idx, true)), + : MemAccessInst(PointerType::get(getIndexedType(Ptr->getType(), Idx, true)), GetElementPtr, Idx, Name) { assert(getIndexedType(Ptr->getType(), Idx, true) && "gep operands invalid!"); Operands.reserve(1+Idx.size()); |