[modules] Emit the type of the TypeSourceInfo for a DeclaratorDecl (but
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 29 Jun 2018 20:46:25 +0000 (20:46 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 29 Jun 2018 20:46:25 +0000 (20:46 +0000)
commitc23d734d9271bab35693f17a73e3e093a130ec10
tree17942f59facfa74404ed453533e39f523a2859d9
parentda1e80feb7609a6626836c8cd675ff7171e4bb04
[modules] Emit the type of the TypeSourceInfo for a DeclaratorDecl (but
not the corresponding location information) earlier.

We need the type as written in order to properly merge functions with
deduced return types, so we need to load that early. But we don't want
to load the location information early, because that contains
problematic things such as the function parameters.

llvm-svn: 336016
clang/include/clang/Serialization/ASTReader.h
clang/include/clang/Serialization/ASTWriter.h
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTReaderDecl.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/lib/Serialization/ASTWriterDecl.cpp