summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHWriter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-23 18:22:55 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-23 18:22:55 +0000
commit89c8e000cf9905ae4b895d02963ef557d1e5eec9 (patch)
treebdc3996d90302847947834656bb134c307e1dfe7 /clang/lib/Frontend/PCHWriter.cpp
parenta6acb390e70453fd129cdaa19bdf8b0e206081f5 (diff)
downloadbcm5719-llvm-89c8e000cf9905ae4b895d02963ef557d1e5eec9.tar.gz
bcm5719-llvm-89c8e000cf9905ae4b895d02963ef557d1e5eec9.zip
Fix handling of C99 "extern inline" semantics when dealing with
multiple declarations of the function. Should fix PR3989 and <rdar://problem/6818429>. llvm-svn: 69905
Diffstat (limited to 'clang/lib/Frontend/PCHWriter.cpp')
-rw-r--r--clang/lib/Frontend/PCHWriter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp
index 62e129919b1..0c640e7b052 100644
--- a/clang/lib/Frontend/PCHWriter.cpp
+++ b/clang/lib/Frontend/PCHWriter.cpp
@@ -356,6 +356,7 @@ void PCHDeclWriter::VisitFunctionDecl(FunctionDecl *D) {
Writer.AddDeclRef(D->getPreviousDeclaration(), Record);
Record.push_back(D->getStorageClass()); // FIXME: stable encoding
Record.push_back(D->isInline());
+ Record.push_back(D->isC99InlineDefinition());
Record.push_back(D->isVirtual());
Record.push_back(D->isPure());
Record.push_back(D->inheritedPrototype());
OpenPOWER on IntegriCloud