]> granicus.if.org Git - clang/commit
Removing an "if (this == nullptr)" check from two print methods. The condition
authorRichard Trieu <rtrieu@google.com>
Mon, 9 Jun 2014 22:53:25 +0000 (22:53 +0000)
committerRichard Trieu <rtrieu@google.com>
Mon, 9 Jun 2014 22:53:25 +0000 (22:53 +0000)
commit8a8409652339fa1ee1446b12b75a29e808cd8816
tree02d381a96820cd2a803ad4baa3a79aad55ae2646
parent38d0c47ac00718bc55655b6e9cbc9029c0b458b3
Removing an "if (this == nullptr)" check from two print methods.  The condition
will never be true in a well-defined context.  The checking for null pointers
has been moved into the caller logic so it does not rely on undefined behavior.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210498 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
lib/AST/APValue.cpp
lib/AST/DeclPrinter.cpp
lib/AST/StmtPrinter.cpp
lib/AST/TypePrinter.cpp
lib/Analysis/CFG.cpp
lib/Rewrite/Core/Rewriter.cpp
lib/Rewrite/Frontend/RewriteModernObjC.cpp
lib/Rewrite/Frontend/RewriteObjC.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExceptionSpec.cpp
lib/StaticAnalyzer/Core/Environment.cpp
lib/StaticAnalyzer/Core/ExprEngine.cpp
lib/StaticAnalyzer/Core/MemRegion.cpp
unittests/AST/StmtPrinterTest.cpp
utils/TableGen/ClangAttrEmitter.cpp