Skip to content

Commit 74ced92

Browse files
committed
Revert "[sil] Teach the SILVerifier how to validate that a builtin insts are always mapped to a known builtin."
This reverts commit e2a9a43. Going to put a cache in front of this to ensure we aren't bloating compile time. Conflicts: lib/SIL/SILVerifier.cpp
1 parent 4ade7ae commit 74ced92

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/SIL/SILVerifier.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,12 +1635,6 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
16351635
return;
16361636
}
16371637

1638-
// At this point, we know that we have a Builtin that is a Swift Builtin
1639-
// rather than an llvm intrinsic. Make sure our name corresponds to an
1640-
// actual ValueDecl. Otherwise, we have an invalid builtin.
1641-
require(getBuiltinValueDecl(BI->getModule().getASTContext(), BI->getName()),
1642-
"Invalid builtin name?!");
1643-
16441638
require(BI->getModule().getStage() != SILStage::Lowered ||
16451639
!isPolymorphicBuiltin(*BI->getBuiltinKind()),
16461640
"Polymorphic builtins are illegal in lowered SIL?!");

0 commit comments

Comments
 (0)