From 2ed39551a7adbeb7933856a62b79b9e9c4f0f7cc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 12 Jun 2010 15:50:24 +0000 Subject: [PATCH] improve verifier error about unterminated block to include function name, patch by Yuri llvm-svn: 105887 --- llvm/lib/VMCore/Verifier.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index 4e5669a61377..b8d21227e440 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;