mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
DebugLocEntry: Actually merge the loc entry when returning true.
Seems we didn't have any test coverage for merging... awesome. So I added some - but hit an llvm-objdump bug while I was there. I'm choosing not to shave that yak right now. Code review feedback/bug catch by Adrian Prantl in r205360. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205373 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -95,7 +95,11 @@ public:
|
||||
}
|
||||
|
||||
bool Merge(const DebugLocEntry &Next) {
|
||||
return End == Next.Begin && hasSameValueOrLocation(Next);
|
||||
if (End == Next.Begin && hasSameValueOrLocation(Next)) {
|
||||
End = Next.End;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool isLocation() const { return EntryKind == E_Location; }
|
||||
bool isInt() const { return EntryKind == E_Integer; }
|
||||
|
Reference in New Issue
Block a user