]> granicus.if.org Git - clang/commit
[modules] Fix merging of __va_list_tag's implicit special member functions.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 13 Oct 2015 00:23:25 +0000 (00:23 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 13 Oct 2015 00:23:25 +0000 (00:23 +0000)
commit5a93df278914a6f7dc87522ff45d33c95bcc46f9
tree866fa6bf1a5aa8c77452e6fc1110c78bf5f9a4f6
parent9579a7c3130274c928bb02c0b7519521ae3e3e57
[modules] Fix merging of __va_list_tag's implicit special member functions.

We model predefined declarations as not being from AST files, but in most ways
they act as if they come from some implicit prebuilt module file imported
before all others. Therefore, if we see an update to the predefined 'struct
__va_list_tag' declaration (and we've already loaded any modules), it needs a
corresponding update record, even though it didn't technically come from an AST
file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250134 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTWriter.cpp
test/Modules/Inputs/va_list/left.h [new file with mode: 0644]
test/Modules/Inputs/va_list/module.modulemap
test/Modules/Inputs/va_list/right.h [new file with mode: 0644]
test/Modules/Inputs/va_list/top.h [new file with mode: 0644]
test/Modules/va_list.cpp [new file with mode: 0644]