diff options
author | Alexis Hunt <alercah@gmail.com> | 2009-11-28 08:58:14 +0000 |
---|---|---|
committer | Alexis Hunt <alercah@gmail.com> | 2009-11-28 08:58:14 +0000 |
commit | ed0530f6941fe80fa9a59ad77b4a01a0cdd5bb88 (patch) | |
tree | ea39a5931773195e31649c22d62983d3cf1b1a2a /clang/lib/Sema/SemaTemplate.cpp | |
parent | 15e9a9df832da814fab386256c4a8e3099849362 (diff) | |
download | bcm5719-llvm-ed0530f6941fe80fa9a59ad77b4a01a0cdd5bb88.tar.gz bcm5719-llvm-ed0530f6941fe80fa9a59ad77b4a01a0cdd5bb88.zip |
Fix test and handle IK_LiteralOperatorId in a few more places.
llvm-svn: 90030
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplate.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index 59ff2947c14..2e4eed8b286 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/lib/Sema/SemaTemplate.cpp @@ -130,6 +130,10 @@ TemplateNameKind Sema::isTemplateName(Scope *S, Name.OperatorFunctionId.Operator); break; + case UnqualifiedId::IK_LiteralOperatorId: + assert(false && "We don't support these; Parse shouldn't have allowed propagation"); + + default: return TNK_Non_template; } @@ -1686,7 +1690,10 @@ Sema::ActOnDependentTemplateName(SourceLocation TemplateKWLoc, case UnqualifiedId::IK_OperatorFunctionId: return TemplateTy::make(Context.getDependentTemplateName(Qualifier, Name.OperatorFunctionId.Operator)); - + + case UnqualifiedId::IK_LiteralOperatorId: + assert(false && "We don't support these; Parse shouldn't have allowed propagation"); + default: break; } |