mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
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
This commit is contained in:
parent
5ca96988b0
commit
2a9a8ae081
@ -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…
x
Reference in New Issue
Block a user