aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaType.cpp
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo.bagnara@gmail.com>2010-08-10 13:46:45 +0000
committerAbramo Bagnara <abramo.bagnara@gmail.com>2010-08-10 13:46:45 +0000
commit22f638a58ed05579c51ee6a35a1d16a7c2157f90 (patch)
tree0e4ee411067ad9e0b76a0740172724bb35165fe5 /lib/Sema/SemaType.cpp
parent2cad900202561cdda18ea6cc51ddbf3e20e3c23a (diff)
Fixed redundant NNS loading.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r--lib/Sema/SemaType.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp
index b3df9eb436..4d10fd030b 100644
--- a/lib/Sema/SemaType.cpp
+++ b/lib/Sema/SemaType.cpp
@@ -1317,9 +1317,9 @@ TypeSourceInfo *Sema::GetTypeForDeclarator(Declarator &D, Scope *S,
case NestedNameSpecifier::TypeSpec:
case NestedNameSpecifier::TypeSpecWithTemplate:
+ // Note: NNSPrefix (if any) is included in ClsType
+ // (hence, no need to wrap ClsType in an elaborated type).
ClsType = QualType(NNS->getAsType(), 0);
- if (NNSPrefix)
- ClsType = Context.getElaboratedType(ETK_None, NNSPrefix, ClsType);
break;
}
} else {