From b8ca3737fbdf51038f80db89048ee00db4ba26b4 Mon Sep 17 00:00:00 2001 From: Andrzej Hunt Date: Fri, 31 Jan 2014 15:23:51 +0000 Subject: DiagnosticsEngine::getCustomDiagID isn't const, so don't pass in const engine. Change-Id: I7e4494b7f1cb62ab27851e34ab4dc6be8e04e1fa Signed-off-by: Stephan Bergmann --- compilerplugins/clang/compat.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compilerplugins/clang/compat.hxx b/compilerplugins/clang/compat.hxx index 75e46ef696c2..4c8c333d7003 100644 --- a/compilerplugins/clang/compat.hxx +++ b/compilerplugins/clang/compat.hxx @@ -46,7 +46,7 @@ inline clang::QualType getParamType( } inline unsigned getCustomDiagID( - clang::DiagnosticsEngine const & engine, clang::DiagnosticsEngine::Level L, + clang::DiagnosticsEngine & engine, clang::DiagnosticsEngine::Level L, llvm::StringRef FormatString) { #if (__clang_major__ == 3 && __clang_minor__ >= 5) || __clang_major__ > 3 -- cgit