]> granicus.if.org Git - clang/commit
Fix PCH deserialization bug with local static symbols being treated as local extern.
authorTed Kremenek <kremenek@apple.com>
Tue, 11 Feb 2014 06:29:29 +0000 (06:29 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 11 Feb 2014 06:29:29 +0000 (06:29 +0000)
commit09f906eeeef64360c1415e86c50462586c9e36d6
tree697d30d61f1c0f6689b851ec8993dffe54c73214
parentd0f476b4cbbaa499af7582248164b4695b21a39d
Fix PCH deserialization bug with local static symbols being treated as local extern.

This triggered a miscompilation of code using Boost's function_template.hpp
when it was included inside a PCH file.  A local static within
that header would be treated as local extern, resulting in the wrong
mangling.  This only occurred during PCH deserialization.

Fixes <rdar://problem/15975816> and <rdar://problem/15926311>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201130 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTReaderDecl.cpp
test/PCH/local_static.cpp [new file with mode: 0644]
test/PCH/local_static.h [new file with mode: 0644]