Simplify this code. Thanks Chris!

llvm-svn: 52514
This commit is contained in:
Dan Gohman 2008-06-20 00:47:44 +00:00
parent e562289a0f
commit d87e813e41
1 changed files with 2 additions and 3 deletions

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,