summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjC.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-20 04:42:34 +0000
committerChris Lattner <sabre@nondot.org>2008-11-20 04:42:34 +0000
commit68e486804fc5cd636730090f454e642954a22083 (patch)
tree5ffc2b9bf6f6b25dee120a59a9c076438a9381ff /clang/lib/CodeGen/CGObjC.cpp
parente42592e33afcef2d9603e87f93175104534787c7 (diff)
downloadbcm5719-llvm-68e486804fc5cd636730090f454e642954a22083.tar.gz
bcm5719-llvm-68e486804fc5cd636730090f454e642954a22083.zip
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. llvm-svn: 59706
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp
index 4469bab2b2e..c2e42d59817 100644
--- a/clang/lib/CodeGen/CGObjC.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud