Fix <rdar://problem/6463613> clang ObjC rewriter: assertion failure rewriting @selector?.

llvm-svn: 61351
This commit is contained in:
Steve Naroff 2008-12-22 22:16:07 +00:00
parent 3c793441cb
commit 2654e18c84
1 changed files with 2 additions and 0 deletions

View File

@ -1727,6 +1727,8 @@ Stmt *RewriteObjC::RewriteAtEncode(ObjCEncodeExpr *Exp) {
}
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;