mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +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:
parent
d45e37a0a5
commit
94edc64ba2
@ -130,7 +130,7 @@ public:
|
||||
|
||||
void addFixup(MCFixup Fixup) {
|
||||
// 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.push_back(Fixup);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user