mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 03:08:43 +00:00
improve verifier error about unterminated block to include
function name, patch by Yuri llvm-svn: 105887
This commit is contained in:
parent
3fdb8fcaeb
commit
72ef28f800
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user