Skip to content

Commit 4f13de3

Browse files
committed
[TBDGen] Generic classes have field offsets too.
1 parent 7678e43 commit 4f13de3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/TBDGen/TBDGen.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ void TBDGenVisitor::visitClassDecl(ClassDecl *CD) {
360360
continue;
361361

362362
auto var = dyn_cast<VarDecl>(value);
363-
auto hasFieldOffset =
364-
!isGeneric && var && var->hasStorage() && !var->isStatic();
363+
auto hasFieldOffset = var && var->hasStorage() && !var->isStatic();
365364
if (hasFieldOffset) {
366365
// FIXME: a field only has one sort of offset, but it is moderately
367366
// non-trivial to compute which one. Including both is less painful than

0 commit comments

Comments
 (0)