diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-02-28 21:54:11 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-02-28 21:54:11 +0000 |
| commit | ea972d3faaad383c0401c7041a406b1ecaea378d (patch) | |
| tree | e7083dfe43a7034f60b80f817ed2f86ac386e863 /clang/lib/Sema/SemaExprCXX.cpp | |
| parent | 63b0d108a2dfad29e8096de30d4563c3c84040c1 (diff) | |
| download | bcm5719-llvm-ea972d3faaad383c0401c7041a406b1ecaea378d.tar.gz bcm5719-llvm-ea972d3faaad383c0401c7041a406b1ecaea378d.zip | |
Push nested-name-specifier location information into DeclRefExpr and
MemberExpr, the last of the expressions with qualifiers!
llvm-svn: 126688
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index bdbb90839af..5266d7d1853 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -1783,7 +1783,8 @@ ExprResult Sema::CheckConditionVariable(VarDecl *ConditionVar, diag::err_invalid_use_of_array_type) << ConditionVar->getSourceRange()); - Expr *Condition = DeclRefExpr::Create(Context, 0, SourceRange(), ConditionVar, + Expr *Condition = DeclRefExpr::Create(Context, NestedNameSpecifierLoc(), + ConditionVar, ConditionVar->getLocation(), ConditionVar->getType().getNonReferenceType(), VK_LValue); |

