mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
If we can't resolve a cross-reference unambiguously, we're supposed to produce an llvm::Error and let the calling code handle it. However, if we couldn't even resolve the /type/ of the cross-reference, we would just crash. Follow the supported error path in that case too -- in many cases the error can just propagate upwards to something that can handle it. rdar://problem/34821187, plus an extra test case from rdar://problem/35157494. (The latter will be fixed better later, but meanwhile let's not regress on the crashing part.)