]> granicus.if.org Git - clang/commit
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)
commit9972fd3af06b8e586b02e7d7fda022649bb79f6e
tree390aafd2696bf54e3b0043e13aed68d18e35c296
parent2a1a395540cd6dcd5a5630ffdf07ff81fb84b2b6
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214471 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/DiagnosticIDs.cpp