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: http://review.tizen.org/git/?a=commitdiff_plain;h=d1e6e141c123259ac5895ff380b91e3035c874e3;p=platform%2Fupstream%2Fllvm.git Using the proper helper function instead of manually doing this work. No functional changes intended. llvm-svn: 198421 --- diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp index 95e023a..87af59a 100644 --- a/clang/lib/Sema/SemaType.cpp +++ b/clang/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(); }