Skip to content

Commit ea0387a

Browse files
committed
[NFC] SILGen: Extract typealias.
1 parent a3ba936 commit ea0387a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/SILGen/SILGenType.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,11 @@ class SILGenVTable : public SILVTableVisitor<SILGenVTable> {
261261
// Map a base SILDeclRef to the corresponding element in vtableMethods.
262262
llvm::DenseMap<SILDeclRef, unsigned> baseToIndexMap;
263263

264+
// A base method and a corresponding override.
265+
using VTableMethod = std::pair<SILDeclRef, SILDeclRef>;
266+
264267
// For each base method, store the corresponding override.
265-
SmallVector<std::pair<SILDeclRef, SILDeclRef>, 8> vtableMethods;
268+
SmallVector<VTableMethod, 8> vtableMethods;
266269

267270
SILGenVTable(SILGenModule &SGM, ClassDecl *theClass)
268271
: SGM(SGM), theClass(theClass) {

0 commit comments

Comments
 (0)