]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
Pull in r199571 from upstream clang trunk (by Ted Kremenek):
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 25 Feb 2015 17:27:02 +0000 (17:27 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 25 Feb 2015 17:27:02 +0000 (17:27 +0000)
commit15f39947ee30c08c9ffcf242d7059a82a26f99a4
tree744a32fb219b47857ad394fda045e2cad52dc8b8
parenta12053966ba94d9f459d67f6f8f67261d6884435
Pull in r199571 from upstream clang trunk (by Ted Kremenek):

  Harden InitListExpr::isStringLiteralInit() against getInit()
  returning null.

  This led to a crash on invalid code (sorry, no good test case).

  Fixes <rdar://problem/15831804>.

This fixes an assertion when compiling certain incorrect code, as
reported upstream in http://llvm.org/PR22684 .

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

Reported by: hbowden@securelabsllc.com

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