forked from OSchip/llvm-project
Implement the ExtractValueInst::getIndexedType that accepts one
index value. llvm-svn: 52432
This commit is contained in:
parent
f873ed1b10
commit
4a3125ba29
|
@ -1460,6 +1460,12 @@ const Type* ExtractValueInst::getIndexedType(const Type *Agg,
|
|||
return CurIdx == NumIdx ? Agg : 0;
|
||||
}
|
||||
|
||||
const Type* ExtractValueInst::getIndexedType(const Type *Agg,
|
||||
const unsigned Idx) {
|
||||
const unsigned Idxs[1] = { Idx };
|
||||
return getIndexedType(Agg, &Idxs[0], 1);
|
||||
}
|
||||
|
||||
ExtractValueInst::ExtractValueInst(Value *Agg,
|
||||
unsigned Idx,
|
||||
const std::string &Name,
|
||||
|
|
Loading…
Reference in New Issue