File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
lldb/source/Plugins/TypeSystem/Clang Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9695,14 +9695,15 @@ GetSpecializedASTName(ScratchTypeSystemClang::IsolatedASTKind feature) {
9695
9695
}
9696
9696
9697
9697
TypeSystemClang &ScratchTypeSystemClang::GetIsolatedAST (
9698
- ScratchTypeSystemClang::IsolatedASTKind feature) {
9698
+ ScratchTypeSystemClang::IsolatedASTKind feature_enum) {
9699
+ int feature = static_cast <int >(feature_enum);
9699
9700
auto found_ast = m_isolated_asts.find (feature);
9700
9701
if (found_ast != m_isolated_asts.end ())
9701
9702
return *found_ast->second ;
9702
9703
9703
9704
// Couldn't find the requested sub-AST, so create it now.
9704
9705
std::unique_ptr<TypeSystemClang> new_ast;
9705
- new_ast.reset (new SpecializedScratchAST (GetSpecializedASTName (feature ),
9706
+ new_ast.reset (new SpecializedScratchAST (GetSpecializedASTName (feature_enum ),
9706
9707
m_triple, CreateASTSource ()));
9707
9708
m_isolated_asts[feature] = std::move (new_ast);
9708
9709
return *m_isolated_asts[feature];
Original file line number Diff line number Diff line change @@ -1228,7 +1228,7 @@ class ScratchTypeSystemClang : public TypeSystemClang {
1228
1228
// / Map from IsolatedASTKind to their actual TypeSystemClang instance.
1229
1229
// / This map is lazily filled with sub-ASTs and should be accessed via
1230
1230
// / `GetSubAST` (which lazily fills this map).
1231
- std::unordered_map<IsolatedASTKind , std::unique_ptr<TypeSystemClang>>
1231
+ std::unordered_map<int , std::unique_ptr<TypeSystemClang>>
1232
1232
m_isolated_asts;
1233
1233
};
1234
1234
You can’t perform that action at this time.
0 commit comments