From acdc093e0a63fb6489e00893d4f617d8fe69c2f8 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Sun, 5 Oct 2014 00:55:44 +0300 Subject: [PATCH] Fixed run-time crashes caused by updating to the new Clang. Signed-off-by: Dimitar Dobrev --- src/CppParser/Parser.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/CppParser/Parser.cpp b/src/CppParser/Parser.cpp index 0c9781b7..5c88b829 100644 --- a/src/CppParser/Parser.cpp +++ b/src/CppParser/Parser.cpp @@ -2939,7 +2939,6 @@ ParserResult* Parser::ParseHeader(const std::string& File, ParserResult* res) C->setASTConsumer(std::move(SC)); C->createSema(clang::TU_Complete, 0); - SC->InitializeSema(C->getSema()); auto DiagClient = new DiagnosticConsumer(); C->getDiagnostics().setClient(DiagClient); @@ -3233,7 +3232,6 @@ ParserTargetInfo* Parser::GetTargetInfo() C->setASTConsumer(std::move(SC)); C->createSema(clang::TU_Complete, 0); - SC->InitializeSema(C->getSema()); auto DiagClient = new DiagnosticConsumer(); C->getDiagnostics().setClient(DiagClient);