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:
Bob Wilson
2016-10-10 13:33:20 -07:00
parent a4dd11c337
commit 607a01b2a6
2 changed files with 3 additions and 3 deletions

View File

@@ -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,