Fix think-o I committed without testing, shameful.

llvm-svn: 125299
This commit is contained in:
Daniel Dunbar 2011-02-10 18:29:28 +00:00
parent 66d8483170
commit 7c2dc3667f
1 changed files with 1 additions and 1 deletions

View File

@ -2369,7 +2369,7 @@ Sema::BuildDeclarationNameExpr(const CXXScopeSpec &SS,
// variable is within the block, create a normal DeclRefExpr.
QualType type = VD->getType();
ExprValueKind valueKind = 0;
ExprValueKind valueKind = VK_RValue;
switch (D->getKind()) {
// Ignore all the non-ValueDecl kinds.