Fix an overzealous assertion. It is legitimate for a target to have multiple fixups...
authorOwen Anderson <resistor@mac.com>
Thu, 5 Jul 2012 22:30:42 +0000 (22:30 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 5 Jul 2012 22:30:42 +0000 (22:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159785 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCAssembler.h

index 4ab7f91f72a5b6325ae0029688c5eef7e44d74d6..b7b2d663f4cc40425601b3215d7670079c89f32b 100644 (file)
@@ -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);
   }