]> granicus.if.org Git - clang/commit
Remove an unnecessary check for FormatTok not being null.
authorAlexander Kornienko <alexfh@google.com>
Thu, 13 Mar 2014 13:59:48 +0000 (13:59 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 13 Mar 2014 13:59:48 +0000 (13:59 +0000)
commitb6f95348b473bd44855a00344e5e28267136c4d7
tree3ce9b058ee045d67cfad12eaf004bd3c5fcd3c74
parent7c2be9f48e0b4f498e50ea4f5df00aff8a105c64
Remove an unnecessary check for FormatTok not being null.

Summary:
This check hints clang analyzer, that FormatTok may be null, and it
reports a null pointer dereference error:
http://buildd-clang.debian.net/scan-build/report-827c64.html#Path28

Reviewers: djasper

Reviewed By: djasper

CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D3040

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203800 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/UnwrappedLineParser.cpp