Skip to content

Commit d2bb064

Browse files
committed
[embedded] Don't SILVerify VTable ABIs in embedded mode, as the specialized vtables have intentionally different ABIs from the non-generic one
1 parent d0c2a4c commit d2bb064

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/SIL/Verifier/SILVerifier.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6923,7 +6923,8 @@ void SILVTable::verify(const SILModule &M) const {
69236923
entry.getMethod().print(os);
69246924
}
69256925

6926-
if (M.getStage() != SILStage::Lowered) {
6926+
if (M.getStage() != SILStage::Lowered &&
6927+
!M.getASTContext().LangOpts.hasFeature(Feature::Embedded)) {
69276928
SILVerifier(*entry.getImplementation(), /*passManager=*/nullptr,
69286929
/*SingleFunction=*/true,
69296930
/*checkLinearLifetime=*/ false)

0 commit comments

Comments
 (0)