diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-12 15:50:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-12 15:50:24 +0000 |
commit | 2a9a8ae0816dc2d6c2c53cce4ad8b033a60058d4 (patch) | |
tree | 4fa47aba02a2127cdf93f473e11fa6cb7c1563a0 /lib/VMCore | |
parent | 5ca96988b01c4c332a7e4a6dba40949c1766465f (diff) | |
download | external_llvm-2a9a8ae0816dc2d6c2c53cce4ad8b033a60058d4.zip external_llvm-2a9a8ae0816dc2d6c2c53cce4ad8b033a60058d4.tar.gz external_llvm-2a9a8ae0816dc2d6c2c53cce4ad8b033a60058d4.tar.bz2 |
improve verifier error about unterminated block to include
function name, patch by Yuri
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105887 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 4e5669a..b8d2122 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -85,7 +85,8 @@ namespace { // Anonymous namespace for class for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I) { if (I->empty() || !I->back().isTerminator()) { - dbgs() << "Basic Block does not have terminator!\n"; + dbgs() << "Basic Block in function '" << F.getName() + << "' does not have terminator!\n"; WriteAsOperand(dbgs(), I, true); dbgs() << "\n"; Broken = true; |