mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-10 02:25:47 +00:00
Fix build breakage by using correct arguments to getIndexedType in the
GEP constructors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33726 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -711,7 +711,8 @@ void GetElementPtrInst::init(Value *Ptr, Value *Idx) {
|
|||||||
GetElementPtrInst::GetElementPtrInst(Value *Ptr, const std::vector<Value*> &Idx,
|
GetElementPtrInst::GetElementPtrInst(Value *Ptr, const std::vector<Value*> &Idx,
|
||||||
const std::string &Name, Instruction *InBe)
|
const std::string &Name, Instruction *InBe)
|
||||||
: Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
|
: Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
|
||||||
Idx, true))),
|
&Idx[0], Idx.size(),
|
||||||
|
true))),
|
||||||
GetElementPtr, 0, 0, Name, InBe) {
|
GetElementPtr, 0, 0, Name, InBe) {
|
||||||
init(Ptr, &Idx[0], Idx.size());
|
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,
|
GetElementPtrInst::GetElementPtrInst(Value *Ptr, const std::vector<Value*> &Idx,
|
||||||
const std::string &Name, BasicBlock *IAE)
|
const std::string &Name, BasicBlock *IAE)
|
||||||
: Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
|
: Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
|
||||||
Idx, true))),
|
&Idx[0], Idx.size(),
|
||||||
|
true))),
|
||||||
GetElementPtr, 0, 0, Name, IAE) {
|
GetElementPtr, 0, 0, Name, IAE) {
|
||||||
init(Ptr, &Idx[0], Idx.size());
|
init(Ptr, &Idx[0], Idx.size());
|
||||||
}
|
}
|
||||||
@@ -728,7 +730,7 @@ GetElementPtrInst::GetElementPtrInst(Value *Ptr, Value* const *Idx,
|
|||||||
unsigned NumIdx,
|
unsigned NumIdx,
|
||||||
const std::string &Name, Instruction *InBe)
|
const std::string &Name, Instruction *InBe)
|
||||||
: Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
|
: Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
|
||||||
Idx, true))),
|
Idx, NumIdx, true))),
|
||||||
GetElementPtr, 0, 0, Name, InBe) {
|
GetElementPtr, 0, 0, Name, InBe) {
|
||||||
init(Ptr, Idx, NumIdx);
|
init(Ptr, Idx, NumIdx);
|
||||||
}
|
}
|
||||||
@@ -737,21 +739,23 @@ GetElementPtrInst::GetElementPtrInst(Value *Ptr, Value* const *Idx,
|
|||||||
unsigned NumIdx,
|
unsigned NumIdx,
|
||||||
const std::string &Name, BasicBlock *IAE)
|
const std::string &Name, BasicBlock *IAE)
|
||||||
: Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
|
: Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
|
||||||
Idx, true))),
|
Idx, NumIdx, true))),
|
||||||
GetElementPtr, 0, 0, Name, IAE) {
|
GetElementPtr, 0, 0, Name, IAE) {
|
||||||
init(Ptr, Idx, NumIdx);
|
init(Ptr, Idx, NumIdx);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetElementPtrInst::GetElementPtrInst(Value *Ptr, Value *Idx,
|
GetElementPtrInst::GetElementPtrInst(Value *Ptr, Value *Idx,
|
||||||
const std::string &Name, Instruction *InBe)
|
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) {
|
GetElementPtr, 0, 0, Name, InBe) {
|
||||||
init(Ptr, Idx);
|
init(Ptr, Idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetElementPtrInst::GetElementPtrInst(Value *Ptr, Value *Idx,
|
GetElementPtrInst::GetElementPtrInst(Value *Ptr, Value *Idx,
|
||||||
const std::string &Name, BasicBlock *IAE)
|
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) {
|
GetElementPtr, 0, 0, Name, IAE) {
|
||||||
init(Ptr, Idx);
|
init(Ptr, Idx);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user