summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-03-11 20:22:50 +0000
committerDouglas Gregor <dgregor@apple.com>2009-03-11 20:22:50 +0000
commit212cab3f64363b5ffbb932e43b98e54e1e79f26c (patch)
tree985b9827e9c110fcb435a399d0043e59fadba9b5 /clang/lib/AST/Expr.cpp
parent3b046d084e01fc9837c3e159bcaec8b94ecb8e82 (diff)
downloadbcm5719-llvm-212cab3f64363b5ffbb932e43b98e54e1e79f26c.tar.gz
bcm5719-llvm-212cab3f64363b5ffbb932e43b98e54e1e79f26c.zip
Eliminate CXXClassVarDecl. It doesn't add anything
llvm-svn: 66696
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 38bcc9bf315..3d2132a43fa 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud