mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Implement the ExtractValueInst::getIndexedType that accepts one
index value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52432 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user