summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-31 22:30:26 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-31 22:30:26 +0000
commitdee14b50e400e650f3516d0a3e9212d4fbcb9fa5 (patch)
tree97203cb71d734cab0376e394b8b156e0ea640364 /llvm/lib
parent53ac41cd5444be67f85f464affa1c3fdd0c73348 (diff)
downloadbcm5719-llvm-dee14b50e400e650f3516d0a3e9212d4fbcb9fa5.tar.gz
bcm5719-llvm-dee14b50e400e650f3516d0a3e9212d4fbcb9fa5.zip
Fix build breakage by using correct arguments to getIndexedType in the
GEP constructors. llvm-svn: 33726
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Instructions.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index d830dfd685f..39eebe67174 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/lib/VMCore/Instructions.cpp
@@ -711,7 +711,8 @@ void GetElementPtrInst::init(Value *Ptr, Value *Idx) {
GetElementPtrInst::GetElementPtrInst(Value *Ptr, const std::vector<Value*> &Idx,
const std::string &Name, Instruction *InBe)
: Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
- Idx, true))),
+ &Idx[0], Idx.size(),
+ true))),
GetElementPtr, 0, 0, Name, InBe) {
init(Ptr, &Idx[0], Idx.size());
}
@@ -719,7 +720,8 @@ GetElementPtrInst::GetElementPtrInst(Value *Ptr, const std::vector<Value*> &Idx,
GetElementPtrInst::GetElementPtrInst(Value *Ptr, const std::vector<Value*> &Idx,
const std::string &Name, BasicBlock *IAE)
: Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
- Idx, true))),
+ &Idx[0], Idx.size(),
+ true))),
GetElementPtr, 0, 0, Name, IAE) {
init(Ptr, &Idx[0], Idx.size());
}
@@ -728,7 +730,7 @@ GetElementPtrInst::GetElementPtrInst(Value *Ptr, Value* const *Idx,
unsigned NumIdx,
const std::string &Name, Instruction *InBe)
: Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
- Idx, true))),
+ Idx, NumIdx, true))),
GetElementPtr, 0, 0, Name, InBe) {
init(Ptr, Idx, NumIdx);
}
@@ -737,21 +739,23 @@ GetElementPtrInst::GetElementPtrInst(Value *Ptr, Value* const *Idx,
unsigned NumIdx,
const std::string &Name, BasicBlock *IAE)
: Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
- Idx, true))),
+ Idx, NumIdx, true))),
GetElementPtr, 0, 0, Name, IAE) {
init(Ptr, Idx, NumIdx);
}
GetElementPtrInst::GetElementPtrInst(Value *Ptr, Value *Idx,
const std::string &Name, Instruction *InBe)
- : Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),Idx))),
+ : Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
+ Idx))),
GetElementPtr, 0, 0, Name, InBe) {
init(Ptr, Idx);
}
GetElementPtrInst::GetElementPtrInst(Value *Ptr, Value *Idx,
const std::string &Name, BasicBlock *IAE)
- : Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),Idx))),
+ : Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
+ Idx))),
GetElementPtr, 0, 0, Name, IAE) {
init(Ptr, Idx);
}
OpenPOWER on IntegriCloud