Commit fcd98933 authored by Sylvestre Ledru's avatar Sylvestre Ledru
Browse files

Fix the build. Match the declaration in trunk. Use clang::diag::Flavor::WarningOrError

llvm-svn: 215833
parent e82b3c8f
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -230,12 +230,12 @@ ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope,
        m_compiler->getCodeGenOpts().setDebugInfo(CodeGenOptions::NoDebugInfo);

    // Disable some warnings.
    m_compiler->getDiagnostics().setSeverityForGroup(clang::diag::Flavor::WarningOrError,
        diag::Flavor::Remark, "unused-value", clang::diag::Severity::Ignored,
        SourceLocation());
    m_compiler->getDiagnostics().setSeverityForGroup(clang::diag::Flavor::WarningOrError,
        diag::Flavor::Remark, "odr", clang::diag::Severity::Ignored,
        SourceLocation());
    m_compiler->getDiagnostics().setSeverityForGroup(
        clang::diag::Flavor::WarningOrError, "unused-value",
        clang::diag::Severity::Ignored, SourceLocation());
    m_compiler->getDiagnostics().setSeverityForGroup(
        clang::diag::Flavor::WarningOrError, "odr",
        clang::diag::Severity::Ignored, SourceLocation());

    // Inform the target of the language options
    //