diff options
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
| -rw-r--r-- | llvm/lib/MC/MachObjectWriter.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp index 3a15d24..386f451 100644 --- a/llvm/lib/MC/MachObjectWriter.cpp +++ b/llvm/lib/MC/MachObjectWriter.cpp @@ -765,8 +765,8 @@ public:        // Note that there is no longer any semantic difference between these two        // relocation types from the linkers point of view, this is done solely        // for pedantic compatibility with 'as'. -      Type = A_SD->isExternal() ? macho::RIT_Difference : -        macho::RIT_Generic_LocalDifference; +      Type = A_SD->isExternal() ? (unsigned)macho::RIT_Difference : +        (unsigned)macho::RIT_Generic_LocalDifference;        Value2 = getSymbolAddress(B_SD, Layout);        FixedValue -= getSectionAddress(B_SD->getFragment()->getParent());      }  | 
