summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo.bagnara@gmail.com>2010-05-19 21:37:53 +0000
committerAbramo Bagnara <abramo.bagnara@gmail.com>2010-05-19 21:37:53 +0000
commitd754848f10c86d33079756b6a2d27d03a7f49395 (patch)
treebd13db4aa3e65b67c071a761853a254e7d2e4c33 /clang/lib/Sema/SemaDecl.cpp
parentf633ebd961d6f87f0d974f8ff1ef99fe5e67373f (diff)
downloadbcm5719-llvm-d754848f10c86d33079756b6a2d27d03a7f49395.tar.gz
bcm5719-llvm-d754848f10c86d33079756b6a2d27d03a7f49395.zip
Added basic source locations to Elaborated and DependentName types.
llvm-svn: 104169
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index e0151d31010..30eaee423bd 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -90,8 +90,9 @@ Sema::TypeTy *Sema::getTypeName(IdentifierInfo &II, SourceLocation NameLoc,
// We know from the grammar that this name refers to a type, so build a
// DependentNameType node to describe the type.
return CheckTypenameType(ETK_None,
- (NestedNameSpecifier *)SS->getScopeRep(),
- II, SS->getRange()).getAsOpaquePtr();
+ (NestedNameSpecifier *)SS->getScopeRep(), II,
+ SourceLocation(), SS->getRange(), NameLoc
+ ).getAsOpaquePtr();
}
return 0;
OpenPOWER on IntegriCloud