forked from OSchip/llvm-project
Fix <rdar://problem/6463613> clang ObjC rewriter: assertion failure rewriting @selector?.
llvm-svn: 61351
This commit is contained in:
parent
3c793441cb
commit
2654e18c84
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue