Fix regression from r190427.
<rdar://problem/14970968> llvm-svn: 190635
This commit is contained in:
parent
1a6e77080f
commit
4ef077a072
@ -10012,7 +10012,7 @@ ExprResult Sema::ActOnChooseExpr(SourceLocation BuiltinLoc,
|
||||
void Sema::ActOnBlockStart(SourceLocation CaretLoc, Scope *CurScope) {
|
||||
BlockDecl *Block = BlockDecl::Create(Context, CurContext, CaretLoc);
|
||||
|
||||
{
|
||||
if (LangOpts.CPlusPlus) {
|
||||
Decl *ManglingContextDecl;
|
||||
if (MangleNumberingContext *MCtx =
|
||||
getCurrentMangleNumberContext(Block->getDeclContext(),
|
||||
|
||||
@ -216,3 +216,8 @@ void testAnonymousEnumTypes(int arg) {
|
||||
SB = ^{ if (arg) return TDFTE_Value; else return getTDFTE(); };
|
||||
SB = ^{ if (arg) return getTDFTE(); else return TDFTE_Value; };
|
||||
}
|
||||
|
||||
static inline void inlinefunc() {
|
||||
^{}();
|
||||
}
|
||||
void inlinefunccaller() { inlinefunc(); }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user