aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-02-25 04:46:04 +0000
committerDouglas Gregor <dgregor@apple.com>2010-02-25 04:46:04 +0000
commitedc90500b1d2587bf0b698fada14537d6741fddf (patch)
treeeec1022df7b9f1f89646a4a8da186aa978e42c77 /lib/Sema/SemaExprCXX.cpp
parentb954e98893505d401acddac42650a81b83d8dc39 (diff)
Restore the invariant that a nested-name-specifier can only contain
class types, dependent types, and namespaces. I had previously weakened this invariant while working on parsing pseudo-destructor expressions, but recent work in that area has made these changes unnecessary. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r--lib/Sema/SemaExprCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp
index 64f2ef204e..1a6fdd7e02 100644
--- a/lib/Sema/SemaExprCXX.cpp
+++ b/lib/Sema/SemaExprCXX.cpp
@@ -133,7 +133,7 @@ Action::TypeTy *Sema::getDestructorName(SourceLocation TildeLoc,
isDependent = LookupCtx && LookupCtx->isDependentContext();
}
- LookInScope = (LookupCtx == 0) && !isDependent;
+ LookInScope = false;
} else if (ObjectTypePtr) {
// C++ [basic.lookup.classref]p3:
// If the unqualified-id is ~type-name, the type-name is looked up