aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExprObjC.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-19 08:23:25 +0000
committerChris Lattner <sabre@nondot.org>2008-11-19 08:23:25 +0000
commit3c73c41cefcfe76f36b7bed72c9f1ec195490951 (patch)
treeaaf7a81af66b31375490e1aa494c576c6903f2cf /lib/Sema/SemaExprObjC.cpp
parent7e3e9b152e06edf329ceb32190d3255f248d4d5f (diff)
stop calling II::getName() unnecesarily in sema
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59609 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprObjC.cpp')
-rw-r--r--lib/Sema/SemaExprObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp
index fff5ae411e..8bacea14bf 100644
--- a/lib/Sema/SemaExprObjC.cpp
+++ b/lib/Sema/SemaExprObjC.cpp
@@ -96,7 +96,7 @@ Sema::ExprResult Sema::ParseObjCProtocolExpression(IdentifierInfo *ProtocolId,
SourceLocation RParenLoc) {
ObjCProtocolDecl* PDecl = ObjCProtocols[ProtocolId];
if (!PDecl) {
- Diag(ProtoLoc, diag::err_undeclared_protocol) << ProtocolId->getName();
+ Diag(ProtoLoc, diag::err_undeclared_protocol) << ProtocolId;
return true;
}