aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-03-15 08:54:51 +0000
committerDuncan Sands <baldrick@free.fr>2011-03-15 08:54:51 +0000
commit36b8e43a3e4ab97c4296d5574482ecf3c4169d85 (patch)
treeb52367d507316eae11dda4caa730681af3d7cf50
parent75548de3014584d24cb6b8b57cef911b4afa0b30 (diff)
Silence compiler warning about case values not being in the enumerated type
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
-rw-r--r--lib/MC/MachObjectWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp
index de5349459d..bd294c27e8 100644
--- a/lib/MC/MachObjectWriter.cpp
+++ b/lib/MC/MachObjectWriter.cpp
@@ -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: