Fix regression from r190427.

<rdar://problem/14970968>

llvm-svn: 190635
This commit is contained in:
Eli Friedman 2013-09-12 22:36:24 +00:00
parent 1a6e77080f
commit 4ef077a072
2 changed files with 6 additions and 1 deletions

View File

@ -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(),

View File

@ -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(); }