Fix Warnings.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Thu, 21 Oct 2010 20:49:38 +0000 (20:49 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Thu, 21 Oct 2010 20:49:38 +0000 (20:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117062 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/WinCOFFObjectWriter.cpp

index 59cac2bc7a38458c226635594811f0011aa19ee2..fd79203fdacb87a29169d3d61a378ed3680b0aa5 100644 (file)
@@ -688,7 +688,7 @@ void WinCOFFObjectWriter::RecordRelocation(const MCAssembler &Asm,
 
   Reloc.Data.VirtualAddress += Fixup.getOffset();
 
-  switch (Fixup.getKind()) {
+  switch ((unsigned)Fixup.getKind()) {
   case X86::reloc_pcrel_4byte:
   case X86::reloc_riprel_4byte:
   case X86::reloc_riprel_4byte_movq_load: