mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
More fixes for crashes when building with a recent clang.
These are more instances of the same problems we've seen elsewhere with ArrayRef and function_ref capturing references to temporary values.
This commit is contained in:
@@ -117,7 +117,7 @@ namespace {
|
||||
llvm::StringMap<SourceLoc> ForwardRefLocalValues;
|
||||
|
||||
/// A callback to be invoked every time a type was deserialized.
|
||||
llvm::function_ref<void(Type)> ParsedTypeCallback;
|
||||
std::function<void(Type)> ParsedTypeCallback;
|
||||
|
||||
|
||||
bool performTypeLocChecking(TypeLoc &T, bool IsSILType,
|
||||
|
||||
Reference in New Issue
Block a user