aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-06-12 15:50:24 +0000
committerChris Lattner <sabre@nondot.org>2010-06-12 15:50:24 +0000
commit2ed39551a7adbeb7933856a62b79b9e9c4f0f7cc (patch)
tree87db6e1d4a81f178d07c8353942b26a38ed84499
parent05466ef7ebfe32255579dccd6063f21579db7679 (diff)
downloadllvm-2ed39551a7adbeb7933856a62b79b9e9c4f0f7cc.zip
llvm-2ed39551a7adbeb7933856a62b79b9e9c4f0f7cc.tar.gz
llvm-2ed39551a7adbeb7933856a62b79b9e9c4f0f7cc.tar.bz2
improve verifier error about unterminated block to include
function name, patch by Yuri llvm-svn: 105887
-rw-r--r--llvm/lib/VMCore/Verifier.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp
index 4e5669a..b8d2122 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;