]> granicus.if.org Git - clang/commitdiff
Fix think-o I committed without testing, shameful.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 10 Feb 2011 18:29:28 +0000 (18:29 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 10 Feb 2011 18:29:28 +0000 (18:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125299 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 5634c6cdd87d2c2d83da6d22dfe6ec7cef0d0011..b0c337149d9c8a8f3b0e009ce9f1962a242809ce 100644 (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.