[llvm-commits] [llvm] r127676 - /llvm/trunk/lib/MC/MachObjectWriter.cpp
Duncan Sands
baldrick at free.fr
Tue Mar 15 01:54:51 PDT 2011
Author: baldrick
Date: Tue Mar 15 03:54:51 2011
New Revision: 127676
URL: http://llvm.org/viewvc/llvm-project?rev=127676&view=rev
Log:
Silence compiler warning about case values not being in the enumerated type
MCFixupKind. This is the same technique that is used elsewhere in MC.
Modified:
llvm/trunk/lib/MC/MachObjectWriter.cpp
Modified: llvm/trunk/lib/MC/MachObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MachObjectWriter.cpp?rev=127676&r1=127675&r2=127676&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MachObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/MachObjectWriter.cpp Tue Mar 15 03:54:51 2011
@@ -826,7 +826,7 @@
// 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:
More information about the llvm-commits
mailing list