Check if a block has a terminator first before calling front() on
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Sat, 4 Dec 2004 02:30:42 +0000 (02:30 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Sat, 4 Dec 2004 02:30:42 +0000 (02:30 +0000)
commit4f4cf99a8662b4ee989c3ead691ba586221ea44b
tree83a768dc918fed6fd010ba64017e5c32201768cc
parent8b42b43dc24266beb8427acb7d3779dce432496a
Check if a block has a terminator first before calling front() on
it. If a block has a terminator then it is certainly non-empty so the
verifier will not crash on it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18484 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Verifier.cpp