Removing an "if (!this)" 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/llvm/trunk@210497 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Richard Trieu
2014-06-09 22:53:16 +00:00
parent 8aeca44558
commit f31ecd3927
8 changed files with 12 additions and 10 deletions

View File

@@ -45,6 +45,7 @@ public:
for (Loop::block_iterator b = L->block_begin(), be = L->block_end();
b != be;
++b) {
assert((*b) != nullptr && "Expecting non-null block");
(*b)->print(Out);
}
return false;