Remove this pointer that is converted to bool. In well-defined contexts, the
authorRichard Trieu <rtrieu@google.com>
Fri, 1 Aug 2014 01:42:01 +0000 (01:42 +0000)
committerRichard Trieu <rtrieu@google.com>
Fri, 1 Aug 2014 01:42:01 +0000 (01:42 +0000)
commit428058fb9a89586b43e9b6fe16e22664d9d37d00
treef995fed25b101217e60d48e7af2e8fc2f6ded2b2
parent82ecc7ff2a206068be74559134755e036ca9481e
Remove this pointer that is converted to bool.  In well-defined contexts, the
this pointer is always non-null.  If the this pointer is null, it is undefined
and the compiler may optimize it away by assuming it is non-null.  The null
checks are pushed into the callers.

llvm-svn: 214471
clang/lib/Basic/DiagnosticIDs.cpp