forked from OSchip/llvm-project
parent
505a0838f6
commit
1df51ed4e5
|
@ -116,8 +116,8 @@ static inline const Type *checkType(const Type *Ty) {
|
|||
GetElementPtrInst::GetElementPtrInst(Value *Ptr, const std::vector<Value*> &Idx,
|
||||
const std::string &Name, Instruction *InBe)
|
||||
: Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(),
|
||||
Idx, true))),
|
||||
GetElementPtr, Name, InBe) {
|
||||
Idx, true))),
|
||||
GetElementPtr, Name, InBe) {
|
||||
Operands.reserve(1+Idx.size());
|
||||
Operands.push_back(Use(Ptr, this));
|
||||
|
||||
|
|
Loading…
Reference in New Issue