We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9231003 + 49ba28a commit a871aedCopy full SHA for a871aed
lib/SILOptimizer/Transforms/Outliner.cpp
@@ -905,6 +905,7 @@ void ObjCMethodCall::clearState() {
905
BridgedCall = nullptr;
906
BridgedArguments.clear();
907
OutlinedName.clear();
908
+ IsBridgedArgument.clear();
909
}
910
911
std::pair<SILFunction *, SILBasicBlock::iterator>
test/SILOptimizer/outliner.swift
@@ -157,3 +157,11 @@ public func dontCrash2(_ c: SomeGenericClass) -> Bool {
157
158
return true
159
160
+
161
+func dontCrash3() -> String? {
162
+ let bundle = Bundle.main
163
+ let resource = "common parameter"
164
165
+ return bundle.path(forResource: resource, ofType: "png")
166
+ ?? bundle.path(forResource: resource, ofType: "apng")
167
+}
0 commit comments