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 | 2ed39551a7adbeb7933856a62b79b9e9c4f0f7cc (patch) | |
| tree | 87db6e1d4a81f178d07c8353942b26a38ed84499 /llvm/lib/VMCore | |
| parent | 05466ef7ebfe32255579dccd6063f21579db7679 (diff) | |
| download | bcm5719-llvm-2ed39551a7adbeb7933856a62b79b9e9c4f0f7cc.tar.gz bcm5719-llvm-2ed39551a7adbeb7933856a62b79b9e9c4f0f7cc.zip | |
improve verifier error about unterminated block to include
function name, patch by Yuri
llvm-svn: 105887
Diffstat (limited to 'llvm/lib/VMCore')
| -rw-r--r-- | llvm/lib/VMCore/Verifier.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index 4e5669a6137..b8d21227e44 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/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; |

