summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/NestedNameSpecifier.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-09-09 00:23:06 +0000
committerDouglas Gregor <dgregor@apple.com>2009-09-09 00:23:06 +0000
commit308047d3a5dc226ab49758253e4a2e4a69c6e43d (patch)
treee4d8442c929c01e04e8399387a8827562bfb8fc3 /clang/lib/AST/NestedNameSpecifier.cpp
parentc466e31309b569389d8ff267311bcae6401ba2e7 (diff)
downloadbcm5719-llvm-308047d3a5dc226ab49758253e4a2e4a69c6e43d.tar.gz
bcm5719-llvm-308047d3a5dc226ab49758253e4a2e4a69c6e43d.zip
Initial stab at implement dependent member references to member
templates, e.g., x.template get<T> We can now parse these, represent them within an UnresolvedMemberExpr expression, then instantiate that expression node in simple cases. This allows us to stumble through parsing LLVM's Casting.h. llvm-svn: 81300
Diffstat (limited to 'clang/lib/AST/NestedNameSpecifier.cpp')
-rw-r--r--clang/lib/AST/NestedNameSpecifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/NestedNameSpecifier.cpp b/clang/lib/AST/NestedNameSpecifier.cpp
index 24fb7524204..2ed8eb00993 100644
--- a/clang/lib/AST/NestedNameSpecifier.cpp
+++ b/clang/lib/AST/NestedNameSpecifier.cpp
@@ -42,7 +42,7 @@ NestedNameSpecifier *
NestedNameSpecifier::Create(ASTContext &Context, NestedNameSpecifier *Prefix,
IdentifierInfo *II) {
assert(II && "Identifier cannot be NULL");
- assert(Prefix && Prefix->isDependent() && "Prefix must be dependent");
+ assert((!Prefix || Prefix->isDependent()) && "Prefix must be dependent");
NestedNameSpecifier Mockup;
Mockup.Prefix.setPointer(Prefix);
OpenPOWER on IntegriCloud