File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
lldb/source/Plugins/TypeSystem/Swift Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1912,7 +1912,6 @@ SwiftASTContext *TypeSystemSwiftTypeRefForExpressions::GetSwiftASTContext(
1912
1912
SwiftASTContext *TypeSystemSwiftTypeRef::GetSwiftASTContextOrNull (
1913
1913
const SymbolContext &sc) const {
1914
1914
std::lock_guard<std::mutex> guard (m_swift_ast_context_lock);
1915
-
1916
1915
const char *key = nullptr ;
1917
1916
auto it = m_swift_ast_context_map.find (key);
1918
1917
if (it != m_swift_ast_context_map.end ())
@@ -1922,9 +1921,9 @@ SwiftASTContext *TypeSystemSwiftTypeRef::GetSwiftASTContextOrNull(
1922
1921
1923
1922
SwiftASTContext *TypeSystemSwiftTypeRefForExpressions::GetSwiftASTContextOrNull (
1924
1923
const SymbolContext &sc) const {
1925
- std::lock_guard<std::mutex> guard (m_swift_ast_context_lock);
1926
-
1927
1924
const char *key = DeriveKeyFor (sc);
1925
+
1926
+ std::lock_guard<std::mutex> guard (m_swift_ast_context_lock);
1928
1927
auto it = m_swift_ast_context_map.find (key);
1929
1928
if (it != m_swift_ast_context_map.end ())
1930
1929
return llvm::cast_or_null<SwiftASTContext>(it->second .typesystem .get ());
You can’t perform that action at this time.
0 commit comments