aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-02-10 18:29:28 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-02-10 18:29:28 +0000
commitb20de817259c2bf500a88b8172347dbcc4765004 (patch)
tree15f895231d5bfecf0773a725462d04b722f6e421
parentf2d1561d5124cabe14790091fafb68926de58df3 (diff)
Fix think-o I committed without testing, shameful.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125299 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 5634c6cdd8..b0c337149d 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -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.