Clang import: Fix null pointer dereference
This commit is contained in:
parent
0e8556e6ed
commit
1e8eb28390
|
@ -1244,6 +1244,7 @@ void clangimport::AstNode::createTokensFunctionDecl(TokenList *tokenList)
|
|||
if (hasBody) {
|
||||
symbolDatabase->scopeList.push_back(Scope(nullptr, nullptr, nestedIn));
|
||||
scope = &symbolDatabase->scopeList.back();
|
||||
scope->check = symbolDatabase;
|
||||
scope->function = function;
|
||||
scope->classDef = nameToken;
|
||||
scope->type = Scope::ScopeType::eFunction;
|
||||
|
|
Loading…
Reference in New Issue