Silence compiler warning about case values not being in the enumerated type
authorDuncan Sands <baldrick@free.fr>
Tue, 15 Mar 2011 08:54:51 +0000 (08:54 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 15 Mar 2011 08:54:51 +0000 (08:54 +0000)
MCFixupKind.  This is the same technique that is used elsewhere in MC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127676 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MachObjectWriter.cpp

index de5349459d1c2d71de3f35eff98b32c987daf86b..bd294c27e8a7654109ab1bbc29fb3089db82bd9e 100644 (file)
@@ -826,7 +826,7 @@ public:
     // relocation entry in the the low 16 bits of r_address field.
     unsigned ThumbBit = 0;
     unsigned MovtBit = 0;
-    switch (Fixup.getKind()) {
+    switch ((unsigned)Fixup.getKind()) {
     default: break;
     case ARM::fixup_arm_movt_hi16:
     case ARM::fixup_arm_movt_hi16_pcrel: