]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
Pull in r201130 from upstream clang trunk (by Ted Kremenek):
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 14 Feb 2015 23:25:39 +0000 (23:25 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 14 Feb 2015 23:25:39 +0000 (23:25 +0000)
commit445513b4bddd4a9dcf5483d025257074ee02db6e
treea500dbc0aaace8ac09aa06e97586e1871c381e67
parentb3fbf40c6882d0e38228f9ab569414a30f065bc4
Pull in r201130 from upstream clang trunk (by Ted Kremenek):

  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>.

This fixes a crash in audio/murmur, which is using both PCH and Boost.

Direct commit to stable/10 and stable/9, since head has clang 3.5.1,
which already includes this change.

Reported by: smh
PR: 197389

git-svn-id: svn://svn.freebsd.org/base/stable/10@278788 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/llvm/tools/clang/lib/Serialization/ASTReaderDecl.cpp