Skip to content

Commit 79da5fe

Browse files
authored
[CIR][NFC] Remove duplicate code (#145790)
This change removes a bit of code that was left as an artifact of a previous "not yet implemented" state. The implementation is in place, but the code to report an NYI diagnostic was left behind.
1 parent bd86fc9 commit 79da5fe

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

clang/lib/CIR/CodeGen/CIRGenRecordLayoutBuilder.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -614,14 +614,6 @@ CIRGenTypes::computeRecordLayout(const RecordDecl *rd, cir::RecordType *ty) {
614614
}
615615
}
616616

617-
if (llvm::isa<CXXRecordDecl>(rd) && !rd->isUnion() &&
618-
!rd->hasAttr<FinalAttr>()) {
619-
if (lowering.astRecordLayout.getNonVirtualSize() !=
620-
lowering.astRecordLayout.getSize()) {
621-
cgm.errorNYI(rd->getSourceRange(), "computeRecordLayout: CXXRecordDecl");
622-
}
623-
}
624-
625617
// Fill in the record *after* computing the base type. Filling in the body
626618
// signifies that the type is no longer opaque and record layout is complete,
627619
// but we may need to recursively layout rd while laying D out as a base type.

0 commit comments

Comments
 (0)