llvm-mc: Fix thinko in emitting values.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 28 Aug 2009 05:48:10 +0000 (05:48 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 28 Aug 2009 05:48:10 +0000 (05:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80340 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCAssembler.cpp

index 5fd67b25b2a6c87579269ad2ed523b1fff3528ca..a01d8de46b225bd84df9c9fc2b7bcc231d848d5b 100644 (file)
@@ -1002,7 +1002,7 @@ static void WriteFileData(raw_ostream &OS, const MCFragment &F,
     MCFillFragment &FF = cast<MCFillFragment>(F);
 
     int64_t Value = 0;
     MCFillFragment &FF = cast<MCFillFragment>(F);
 
     int64_t Value = 0;
-    if (!FF.getValue().isAbsolute())
+    if (FF.getValue().isAbsolute())
       Value = FF.getValue().getConstant();
     for (uint64_t i = 0, e = FF.getCount(); i != e; ++i) {
       if (!FF.getValue().isAbsolute()) {
       Value = FF.getValue().getConstant();
     for (uint64_t i = 0, e = FF.getCount(); i != e; ++i) {
       if (!FF.getValue().isAbsolute()) {