[llvm-commits] CVS: llvm/lib/VMCore/Instructions.cpp
Reid Spencer
reid at x10sys.com
Wed Jan 31 14:30:42 PST 2007
Changes in directory llvm/lib/VMCore:
Instructions.cpp updated: 1.68 -> 1.69
---
Log message:
Fix build breakage by using correct arguments to getIndexedType in the
GEP constructors.
---
Diffs of the changes: (+10 -6)
Instructions.cpp | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
Index: llvm/lib/VMCore/Instructions.cpp
diff -u llvm/lib/VMCore/Instructions.cpp:1.68 llvm/lib/VMCore/Instructions.cpp:1.69
--- llvm/lib/VMCore/Instructions.cpp:1.68 Wed Jan 31 13:47:18 2007
+++ llvm/lib/VMCore/Instructions.cpp Wed Jan 31 16:30:26 2007
@@ -711,7 +711,8 @@
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,
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 @@
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 @@
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);
}
More information about the llvm-commits
mailing list