[cfe-commits] r61351 - /cfe/trunk/Driver/RewriteObjC.cpp
Steve Naroff
snaroff at apple.com
Mon Dec 22 14:16:08 PST 2008
Author: snaroff
Date: Mon Dec 22 16:16:07 2008
New Revision: 61351
URL: http://llvm.org/viewvc/llvm-project?rev=61351&view=rev
Log:
Fix <rdar://problem/6463613> clang ObjC rewriter: assertion failure rewriting @selector?.
Modified:
cfe/trunk/Driver/RewriteObjC.cpp
Modified: cfe/trunk/Driver/RewriteObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteObjC.cpp?rev=61351&r1=61350&r2=61351&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteObjC.cpp (original)
+++ cfe/trunk/Driver/RewriteObjC.cpp Mon Dec 22 16:16:07 2008
@@ -1727,6 +1727,8 @@
}
Stmt *RewriteObjC::RewriteAtSelector(ObjCSelectorExpr *Exp) {
+ if (!SelGetUidFunctionDecl)
+ SynthSelGetUidFunctionDecl();
assert(SelGetUidFunctionDecl && "Can't find sel_registerName() decl");
// Create a call to sel_registerName("selName").
llvm::SmallVector<Expr*, 8> SelExprs;
More information about the cfe-commits
mailing list