mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Add and use Type::subtypes. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222682 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -620,9 +620,8 @@ void ValueEnumerator::EnumerateType(Type *Ty) {
|
||||
|
||||
// Enumerate all of the subtypes before we enumerate this type. This ensures
|
||||
// that the type will be enumerated in an order that can be directly built.
|
||||
for (Type::subtype_iterator I = Ty->subtype_begin(), E = Ty->subtype_end();
|
||||
I != E; ++I)
|
||||
EnumerateType(*I);
|
||||
for (Type *SubTy : Ty->subtypes())
|
||||
EnumerateType(SubTy);
|
||||
|
||||
// Refresh the TypeID pointer in case the table rehashed.
|
||||
TypeID = &TypeMap[Ty];
|
||||
|
Reference in New Issue
Block a user