r198421 - Using the proper helper function instead of manually doing this work. No functional changes intended.
Aaron Ballman
aaron at aaronballman.com
Fri Jan 3 07:02:58 PST 2014
Author: aaronballman
Date: Fri Jan 3 09:02:58 2014
New Revision: 198421
URL: http://llvm.org/viewvc/llvm-project?rev=198421&view=rev
Log:
Using the proper helper function instead of manually doing this work. No functional changes intended.
Modified:
cfe/trunk/lib/Sema/SemaType.cpp
Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=198421&r1=198420&r2=198421&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Fri Jan 3 09:02:58 2014
@@ -1737,13 +1737,13 @@ QualType Sema::BuildMemberPointerType(Qu
// 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();
}
More information about the cfe-commits
mailing list