mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 15:39:00 +00:00
Micro-optimize DerivedType::dropAllTypeUses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82900 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
00cb67359f
commit
6afea253e0
@ -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
Block a user