mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
If a scope has only one instruction then first instruction is also the last instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -218,7 +218,7 @@ public:
|
||||
|
||||
// Use the end of last child scope as end of this scope.
|
||||
SmallVector<DbgScope *, 4> &Scopes = getScopes();
|
||||
const MachineInstr *LastInsn = NULL;
|
||||
const MachineInstr *LastInsn = getFirstInsn();
|
||||
unsigned LIndex = 0;
|
||||
if (Scopes.empty()) {
|
||||
assert (getLastInsn() && "Inner most scope does not have last insn!");
|
||||
|
Reference in New Issue
Block a user