forked from OSchip/llvm-project
Micro-optimize DerivedType::dropAllTypeUses.
llvm-svn: 82900
This commit is contained in:
parent
6daa565cf9
commit
4338f905b7
|
@ -498,8 +498,9 @@ void DerivedType::dropAllTypeUses() {
|
|||
// pick so long as it doesn't point back to this type. We choose something
|
||||
// concrete to avoid overhead for adding to AbstractTypeUser lists and
|
||||
// stuff.
|
||||
const Type *ConcreteTy = Type::getInt32Ty(getContext());
|
||||
for (unsigned i = 1, e = NumContainedTys; i != e; ++i)
|
||||
ContainedTys[i] = Type::getInt32Ty(getContext());
|
||||
ContainedTys[i] = ConcreteTy;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue