aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitbc7a95eb7ae8b79de22dcaa5463a7f25d524098e (patch)
tree1cdf1034bccb5f21b07c248ca943c208fa797e0a /lib/VMCore/iMemory.cpp
parent36bd82aa470ed0007cdb19abc556aacf8790823f (diff)
downloadexternal_llvm-bc7a95eb7ae8b79de22dcaa5463a7f25d524098e.zip
external_llvm-bc7a95eb7ae8b79de22dcaa5463a7f25d524098e.tar.gz
external_llvm-bc7a95eb7ae8b79de22dcaa5463a7f25d524098e.tar.bz2
Cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@467 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/iMemory.cpp')
-rw-r--r--lib/VMCore/iMemory.cpp3
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());