Skip to content

Commit 4e5002d

Browse files
committed
fixup! isDynamicClass instead of isPolymorphic; add test
1 parent f6c64fe commit 4e5002d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/ABIInfoImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ bool CodeGen::isEmptyRecordForLayout(const ASTContext &Context, QualType T) {
330330

331331
// If this is a C++ record, check the bases first.
332332
if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD)) {
333-
if (CXXRD->isPolymorphic())
333+
if (CXXRD->isDynamicClass())
334334
return false;
335335

336336
for (const auto &I : CXXRD->bases())

0 commit comments

Comments
 (0)