From ce64d096d246e0ccd388712a8cdce81ca13f7e09 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Fri, 26 Dec 2014 06:06:56 +0000 Subject: [PATCH] Sema: Qualify getPrintable's Expr argument getPrintable has an overload which takes a bool. This means that const qualified Exprs would get forwarded to the bool overload instead of the Expr overload. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224844 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Sema/Sema.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 39f8e669a6..95fc68fbc1 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -1251,7 +1251,7 @@ public: static QualType getPrintable(QualType T) { return T; } static SourceRange getPrintable(SourceRange R) { return R; } static SourceRange getPrintable(SourceLocation L) { return L; } - static SourceRange getPrintable(Expr *E) { return E->getSourceRange(); } + static SourceRange getPrintable(const Expr *E) { return E->getSourceRange(); } static SourceRange getPrintable(TypeLoc TL) { return TL.getSourceRange();} template -- 2.50.1