From: Aaron Ballman Date: Fri, 3 Jan 2014 15:02:58 +0000 (+0000) Subject: Using the proper helper function instead of manually doing this work. No functional... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e02453eec7bae9e72dfccf13754d09babffd490;p=clang Using the proper helper function instead of manually doing this work. No functional changes intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198421 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 95e023acfe..87af59a99a 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -1737,13 +1737,13 @@ QualType Sema::BuildMemberPointerType(QualType T, QualType Class, // with reference type, or "cv void." if (T->isReferenceType()) { Diag(Loc, diag::err_illegal_decl_mempointer_to_reference) - << (Entity? Entity.getAsString() : "type name") << T; + << getPrintableNameForEntity(Entity) << T; return QualType(); } if (T->isVoidType()) { Diag(Loc, diag::err_illegal_decl_mempointer_to_void) - << (Entity? Entity.getAsString() : "type name"); + << getPrintableNameForEntity(Entity); return QualType(); }