diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-20 04:42:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-20 04:42:34 +0000 |
commit | 92e62b02226410bcad8584541b8f1ff4d35ebab9 (patch) | |
tree | aff14a293c5b7307ead4c35ae21ff1c6e940196e /lib/CodeGen/CGObjC.cpp | |
parent | a751217e769cbe73df2d579a28153f1c947aef10 (diff) |
Rename IdentifierInfo::isName to ::isStr. Use a nifty trick
from Sebastian to enforce that a literal string is passed in,
and use this to avoid having to call strlen on it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | lib/CodeGen/CGObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp index 4469bab2b2..c2e42d5981 100644 --- a/lib/CodeGen/CGObjC.cpp +++ b/lib/CodeGen/CGObjC.cpp @@ -63,7 +63,7 @@ RValue CodeGenFunction::EmitObjCMessageExpr(const ObjCMessageExpr *E) { // Very special case, super send in class method. The receiver is // self (the class object) and the send uses super semantics. if (!OID) { - assert(E->getClassName()->isName("super") && + assert(E->getClassName()->isStr("super") && "Unexpected missing class interface in message send."); isSuperMessage = true; Receiver = LoadObjCSelf(); |