1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Simplify this code. Thanks Chris!

llvm-svn: 52514
This commit is contained in:
Dan Gohman 2008-06-20 00:47:44 +00:00
parent 4006f4cdf0
commit bcddb92f4e

View File

@ -1463,9 +1463,8 @@ const Type* ExtractValueInst::getIndexedType(const Type *Agg,
}
const Type* ExtractValueInst::getIndexedType(const Type *Agg,
const unsigned Idx) {
const unsigned Idxs[1] = { Idx };
return getIndexedType(Agg, &Idxs[0], 1);
unsigned Idx) {
return getIndexedType(Agg, &Idx, 1);
}
ExtractValueInst::ExtractValueInst(Value *Agg,