summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/iMemory.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-07 16:57:29 +0000
committerChris Lattner <sabre@nondot.org>2001-09-07 16:57:29 +0000
commit5f3b276293a110a8ba124d92b9e1ab4c0e9079fa (patch)
treeff3490d6c353faba4b68468493b994380af87e75 /llvm/lib/VMCore/iMemory.cpp
parent97d79f144c7be16b376383a23e99b8c440746b08 (diff)
downloadbcm5719-llvm-5f3b276293a110a8ba124d92b9e1ab4c0e9079fa.tar.gz
bcm5719-llvm-5f3b276293a110a8ba124d92b9e1ab4c0e9079fa.zip
Cleanup
llvm-svn: 467
Diffstat (limited to 'llvm/lib/VMCore/iMemory.cpp')
-rw-r--r--llvm/lib/VMCore/iMemory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/iMemory.cpp b/llvm/lib/VMCore/iMemory.cpp
index 72af71fd3fa..eefeeefdc17 100644
--- a/llvm/lib/VMCore/iMemory.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud