diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-11 20:22:50 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-11 20:22:50 +0000 |
commit | 2d2e9cfdc1dbb6e4a22f8c0b1abcd30437e3795d (patch) | |
tree | 59a627bb27a9c540e557524e0dc81e0d37b735c5 /lib/AST/Expr.cpp | |
parent | ceb77d909f80d4949ee6177094510413c391cddc (diff) |
Eliminate CXXClassVarDecl. It doesn't add anything
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 38bcc9bf31..3d2132a43f 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -511,7 +511,7 @@ Expr::isLvalueResult Expr::isLvalue(ASTContext &Ctx) const { return LV_Valid; // -- If E2 is a static data member [...] then E1.E2 is an lvalue. - if (isa<CXXClassVarDecl>(Member)) + if (isa<VarDecl>(Member) && Member->getDeclContext()->isRecord()) return LV_Valid; // -- If E2 is a non-static data member [...]. If E1 is an |