diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-01-03 13:56:08 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-01-03 13:56:08 +0000 |
| commit | 08b3500a18f63481677a930d6c180410f84d3b31 (patch) | |
| tree | 49e29bc79c0433d1dc20882dce82ff895a410a87 /lib/Sema/SemaCodeComplete.cpp | |
| parent | d688df0f690a053c412e4c6fe69241123ab66ce2 (diff) | |
| download | clang-08b3500a18f63481677a930d6c180410f84d3b31.tar.gz clang-08b3500a18f63481677a930d6c180410f84d3b31.tar.bz2 clang-08b3500a18f63481677a930d6c180410f84d3b31.tar.xz | |
It turns out the problem was a bit more wide-spread. Removing a lot of unneeded typecasts. getScopeRep() already returns a NestedNameSpecifier.
No functional changes intended.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCodeComplete.cpp')
| -rw-r--r-- | lib/Sema/SemaCodeComplete.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaCodeComplete.cpp b/lib/Sema/SemaCodeComplete.cpp index 7a1b36b2d7..fb318bc410 100644 --- a/lib/Sema/SemaCodeComplete.cpp +++ b/lib/Sema/SemaCodeComplete.cpp @@ -4080,7 +4080,7 @@ void Sema::CodeCompleteQualifiedId(Scope *S, CXXScopeSpec &SS, // The "template" keyword can follow "::" in the grammar, but only // put it into the grammar if the nested-name-specifier is dependent. - NestedNameSpecifier *NNS = (NestedNameSpecifier *)SS.getScopeRep(); + NestedNameSpecifier *NNS = SS.getScopeRep(); if (!Results.empty() && NNS->isDependent()) Results.AddResult("template"); |
