mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 07:00:59 +00:00
Implement the ExtractValueInst::getIndexedType that accepts one
index value. llvm-svn: 52432
This commit is contained in:
parent
10ead77866
commit
24d9c8400f
@ -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…
x
Reference in New Issue
Block a user