File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
branches/swift-5.1-old-llvm-branch/lib/SIL Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1241,7 +1241,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-01-24-a: b6f62823aa5010b2ae53f15f72a57
1241
1241
refs/heads/marcrasi-astverifier-disable: 3fac766a23a77ebd0640296bfd7fc116ea60a4e0
1242
1242
refs/heads/revert-22227-a-tall-white-fountain-played: adfce60b2eaa54903ea189bed8a783bca609fa53
1243
1243
refs/heads/revert-22300-revert-22227-a-tall-white-fountain-played: 5f92040224df7dd4e618fdfb367349df64d8acad
1244
- refs/heads/swift-5.1-old-llvm-branch: 8773f21cf54556a5e17fc31ed75d6c2242afedaa
1244
+ refs/heads/swift-5.1-old-llvm-branch: bf5943f9c2f92ed74dafad2a14e632d26fdefe87
1245
1245
refs/heads/swift-5.1-branch: 8060872acb4105d9655e020fe047e1ebcd77d0fb
1246
1246
refs/tags/swift-4.2.2-RELEASE: e429d1f1aaf59e69d38207a96e56265c7f6fccec
1247
1247
refs/tags/swift-5.0-DEVELOPMENT-SNAPSHOT-2019-02-02-a: 3e5a03d32ff3b1e9af90d6c1198c14f938379a6e
Original file line number Diff line number Diff line change @@ -385,7 +385,14 @@ void verifyKeyPathComponent(SILModule &M,
385
385
break ;
386
386
}
387
387
case KeyPathPatternComponent::Kind::TupleElement: {
388
- // llvm_unreachable("[technicated]");
388
+ require (loweredBaseTy.is <TupleType>(),
389
+ " invalid baseTy, should have been a TupleType" );
390
+
391
+ auto tupleTy = loweredBaseTy.getAs <TupleType>();
392
+
393
+ require (component.getTupleIndex () < tupleTy->getNumElements (),
394
+ " invalid element index, greater than # of tuple elements" );
395
+
389
396
break ;
390
397
}
391
398
}
You can’t perform that action at this time.
0 commit comments