Simplify this code. Thanks Chris!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52514 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-06-20 00:47:44 +00:00
parent c8af52c898
commit 09ef00f979

View File

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