Remove BlockDeclRefExpr and introduce a bit on DeclRefExpr to
track whether the referenced declaration comes from an enclosing local context. I'm amenable to suggestions about the exact meaning of this bit. llvm-svn: 152491
This commit is contained in:
@@ -2187,6 +2187,7 @@ ExprResult Sema::CheckConditionVariable(VarDecl *ConditionVar,
|
||||
Owned(DeclRefExpr::Create(Context, NestedNameSpecifierLoc(),
|
||||
SourceLocation(),
|
||||
ConditionVar,
|
||||
/*enclosing*/ false,
|
||||
ConditionVar->getLocation(),
|
||||
ConditionVar->getType().getNonReferenceType(),
|
||||
VK_LValue));
|
||||
|
||||
Reference in New Issue
Block a user