]> granicus.if.org Git - clang/commit
Harden InitListExpr::isStringLiteralInit() against getInit() returning null.
authorTed Kremenek <kremenek@apple.com>
Sun, 19 Jan 2014 06:31:34 +0000 (06:31 +0000)
committerTed Kremenek <kremenek@apple.com>
Sun, 19 Jan 2014 06:31:34 +0000 (06:31 +0000)
commitb975a2b87008a4ccd2623d58e21ffe5d4736ece5
treec28d43ebd533c1615302d97e9fd206f832ee8599
parentf84cc8a734386e53a3aca496e91155f880c927b1
Harden InitListExpr::isStringLiteralInit() against getInit() returning null.

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

Fixes <rdar://problem/15831804>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199571 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp