capture sourcelocation info for type specifiers. This improves diagnostics
for things like 'short _Complex'.
llvm-svn: 39227
diff --git a/clang/AST/SemaDecl.cpp b/clang/AST/SemaDecl.cpp
index ff4bb9b..3273177 100644
--- a/clang/AST/SemaDecl.cpp
+++ b/clang/AST/SemaDecl.cpp
@@ -137,7 +137,7 @@
// Set a Declarator for the implicit definition: int foo();
const char *Dummy;
DeclSpec DS;
- bool Error = DS.SetTypeSpecType(DeclSpec::TST_int, Dummy);
+ bool Error = DS.SetTypeSpecType(DeclSpec::TST_int, Loc, Dummy);
assert(!Error && "Error setting up implicit decl!");
Declarator D(DS, Declarator::BlockContext);
D.AddTypeInfo(DeclaratorTypeInfo::getFunction(false, false, true, Loc));