aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-07-12 18:12:03 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-07-12 18:12:03 +0000
commit84ca008a462b515f63871253f494d53c9190363c (patch)
treeb490ffd7a4aeb34a5524043cf59f1db97e93ffab /lib
parentcfd41cfd0bd199672449db88d0502d37131a5c1f (diff)
Compute Type dependent-ness of BlockDeclRefExpr
on the fly when constructing it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108166 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Sema/SemaExpr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 53886e108e..9f9858001e 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -1747,8 +1747,7 @@ Sema::BuildDeclarationNameExpr(const CXXScopeSpec &SS,
QualType T = VD->getType();
BlockDeclRefExpr *BDRE = new (Context) BlockDeclRefExpr(VD,
ExprTy, Loc, false,
- constAdded, 0,
- (getLangOptions().CPlusPlus && T->isDependentType()));
+ constAdded);
if (getLangOptions().CPlusPlus) {
if (!T->isDependentType() && !T->isReferenceType()) {
Expr *E = new (Context)