summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2019-08-13 19:07:28 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2019-08-13 19:07:28 +0000
commita5ef73cb4bd6d3636b01a25981e1f8a57c8b5d67 (patch)
treeec42a81fb385edab966b09f6d33c18be200a49ea /clang/lib/AST/Expr.cpp
parentf9d75bede84e71eddf0f5e232b8408c947d9adaa (diff)
downloadbcm5719-llvm-a5ef73cb4bd6d3636b01a25981e1f8a57c8b5d67.tar.gz
bcm5719-llvm-a5ef73cb4bd6d3636b01a25981e1f8a57c8b5d67.zip
Revert "Fix crash on switch conditions of non-integer types in templates"
This reverts commit r368706. It broke ClangTidy tests. llvm-svn: 368738
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 70bd42cfa51..d2730d3e26d 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -1669,15 +1669,6 @@ MemberExpr *MemberExpr::Create(
MemberExpr *E = new (Mem) MemberExpr(Base, IsArrow, OperatorLoc, MemberDecl,
NameInfo, T, VK, OK, NOUR);
- if (FieldDecl *Field = dyn_cast<FieldDecl>(MemberDecl)) {
- DeclContext *DC = MemberDecl->getDeclContext();
- // dyn_cast_or_null is used to handle objC variables which do not
- // have a declaration context.
- CXXRecordDecl *RD = dyn_cast_or_null<CXXRecordDecl>(DC);
- if (RD && RD->isDependentContext() && RD->isCurrentInstantiation(DC))
- E->setTypeDependent(T->isDependentType());
- }
-
if (HasQualOrFound) {
// FIXME: Wrong. We should be looking at the member declaration we found.
if (QualifierLoc && QualifierLoc.getNestedNameSpecifier()->isDependent()) {
OpenPOWER on IntegriCloud