aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MachObjectWriter.cpp
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
commitc2631d26c0f6c60aaf1f034ba09d3fbe602d8ce7 (patch)
tree7447605fb36d5fb1c964b7186ee6d42dcdaf82ea /llvm/lib/MC/MachObjectWriter.cpp
parent7921ac09756e74c0bfe9c5ddd38182a3766d20f0 (diff)
downloadllvm-c2631d26c0f6c60aaf1f034ba09d3fbe602d8ce7.zip
llvm-c2631d26c0f6c60aaf1f034ba09d3fbe602d8ce7.tar.gz
llvm-c2631d26c0f6c60aaf1f034ba09d3fbe602d8ce7.tar.bz2
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
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/MachObjectWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp
index de53494..bd294c2 100644
--- a/llvm/lib/MC/MachObjectWriter.cpp
+++ b/llvm/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: