mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Fix an overzealous assertion. It is legitimate for a target to have multiple fixups on a single instruction that target the same byte, so long as their bit-offsets are coordinates appropriately.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159785 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -130,7 +130,7 @@ public:
|
|||||||
|
|
||||||
void addFixup(MCFixup Fixup) {
|
void addFixup(MCFixup Fixup) {
|
||||||
// Enforce invariant that fixups are in offset order.
|
// Enforce invariant that fixups are in offset order.
|
||||||
assert((Fixups.empty() || Fixup.getOffset() > Fixups.back().getOffset()) &&
|
assert((Fixups.empty() || Fixup.getOffset() >= Fixups.back().getOffset()) &&
|
||||||
"Fixups must be added in order!");
|
"Fixups must be added in order!");
|
||||||
Fixups.push_back(Fixup);
|
Fixups.push_back(Fixup);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user