]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC Clang debug info crash fix
authoremaste <emaste@FreeBSD.org>
Thu, 11 Sep 2014 01:53:55 +0000 (01:53 +0000)
committeremaste <emaste@FreeBSD.org>
Thu, 11 Sep 2014 01:53:55 +0000 (01:53 +0000)
commit8081f48b5d0c01d86d5b3d32021fa12d8138cba1
treeb7a07adca4d96eb4216bb92429c8629342625eb3
parentb2f9aa76a4bbf30efec9702139f27c272bbdfa80
MFC Clang debug info crash fix

r271282: Merge Clang debug info crash fix rev 200797:

      Debug info: fix a crasher when when emitting debug info for
      not-yet-completed templated types. getTypeSize() needs a complete type.

      rdar://problem/15931354

r271283: Add clang patch for r271282

  Note that r271282 contains only the src change from Clang rev 200797.
  This patch file includes two follow-on changes to the test case, which
  do not apply to the copy in the FreeBSD tree.

  Upstream Clang revisions:

  200797:

      Debug info: fix a crasher when when emitting debug info for
      not-yet-completed templated types. getTypeSize() needs a complete type.

      rdar://problem/15931354

  200798:

      Simplify testcase from r200797 some more.

  200805:

      Further simplify r200797 and add an explanatory comment.

PR: 193347
Approved by: re
Sponsored by: DARPA, AFRL
contrib/llvm/patches/patch-r271282-clang-r200797-r200798-r200805-debug-info-crash.diff [new file with mode: 0644]
contrib/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp