Silence compiler warning about case values not being in the enumerated type

MCFixupKind.  This is the same technique that is used elsewhere in MC.

llvm-svn: 127676
This commit is contained in:
Duncan Sands 2011-03-15 08:54:51 +00:00
parent 7921ac0975
commit c2631d26c0
1 changed files with 1 additions and 1 deletions

View File

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