Commit c17b8200 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

minor fix for pragmahandler seg fault

parent 3dbd5344
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -66,6 +66,9 @@ protected:

    ParseAST(CI.getSema());

    for (auto& p : pragmaHandlers) {
        CI.getSema().getPreprocessor().RemovePragmaHandler(p.get());
    }
    CI.getDiagnosticClient().EndSourceFile();

    std::string outName(fileName);