File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: c501814bf9ff8b03ff6da89308c4c7e9ba9240ec
2
+ refs/heads/master: 41eb45190bf455056e3ffd1bef059aa295771eff
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -1630,8 +1630,16 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
1630
1630
1631
1631
void checkBuiltinInst (BuiltinInst *BI) {
1632
1632
// Check for special constraints on llvm intrinsics.
1633
- if (BI->getIntrinsicInfo ().ID != llvm::Intrinsic::not_intrinsic)
1633
+ if (BI->getIntrinsicInfo ().ID != llvm::Intrinsic::not_intrinsic) {
1634
1634
verifyLLVMIntrinsic (BI, BI->getIntrinsicInfo ().ID );
1635
+ return ;
1636
+ }
1637
+
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?!" );
1635
1643
}
1636
1644
1637
1645
void checkFunctionRefBaseInst (FunctionRefBaseInst *FRI) {
You can’t perform that action at this time.
0 commit comments