File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/SILOptimizer/SILCombiner
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -907,8 +907,8 @@ SILCombiner::buildConcreteOpenedExistentialInfoFromSoleConformingType(
907
907
(archetypeTy->getConformsTo ().size () == 1 )) {
908
908
PD = archetypeTy->getConformsTo ()[0 ];
909
909
} else if (ArgType.isExistentialType () && !ArgType.isAnyObject () &&
910
- !SwiftArgType->isAny () && SwiftArgType-> getAnyNominal () ) {
911
- PD = dyn_cast <ProtocolDecl>(SwiftArgType->getAnyNominal ());
910
+ !SwiftArgType->isAny ()) {
911
+ PD = dyn_cast_or_null <ProtocolDecl>(SwiftArgType->getAnyNominal ());
912
912
}
913
913
}
914
914
Original file line number Diff line number Diff line change 5
5
// See https://swift.org/LICENSE.txt for license information
6
6
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
7
7
8
- // RUN: not %target-swift-frontend %s -O -whole-module-optimization
8
+ // RUN: %target-swift-frontend %s -O -whole-module-optimization -emit-sil
9
9
10
10
class ClassA < T> { }
11
11
protocol ProtocolA { }
You can’t perform that action at this time.
0 commit comments