diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-09 00:23:06 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-09 00:23:06 +0000 |
commit | 308047d3a5dc226ab49758253e4a2e4a69c6e43d (patch) | |
tree | e4d8442c929c01e04e8399387a8827562bfb8fc3 /clang/lib/AST/NestedNameSpecifier.cpp | |
parent | c466e31309b569389d8ff267311bcae6401ba2e7 (diff) | |
download | bcm5719-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.cpp | 2 |
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); |