diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-01-19 21:11:13 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-01-19 21:11:13 +0000 |
commit | e545ee20f1b6ea6c03919cc9bc1a4a059c2f03b6 (patch) | |
tree | 7a682ba4f5bbc80d2acd01eba21e376699dae340 /lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp | |
parent | 27ff6b5e2bc038b1013b5c93e5c2da0144341740 (diff) | |
download | external_llvm-e545ee20f1b6ea6c03919cc9bc1a4a059c2f03b6.zip external_llvm-e545ee20f1b6ea6c03919cc9bc1a4a059c2f03b6.tar.gz external_llvm-e545ee20f1b6ea6c03919cc9bc1a4a059c2f03b6.tar.bz2 |
Silence warnings about mixing enums.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148495 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp')
-rw-r--r-- | lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp b/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp index ed1ea21..55ea023 100644 --- a/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp +++ b/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp @@ -168,8 +168,7 @@ bool ARMAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value, const MCInstFragment *DF, const MCAsmLayout &Layout) const { - switch (Fixup.getKind()) { - default: assert(0 && "Unexpected fixup kind in fixupNeedsRelaxation()!"); + switch ((unsigned)Fixup.getKind()) { case ARM::fixup_arm_thumb_bcc: { // Relaxing tBcc to t2Bcc. tBcc has a signed 9-bit displacement with the // low bit being an implied zero. There's an implied +4 offset for the @@ -188,7 +187,7 @@ bool ARMAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup, return Offset > 1020 || Offset < 0 || Offset & 3; } } - llvm_unreachable("Invalid switch/cash!?"); + llvm_unreachable("Unexpected fixup kind in fixupNeedsRelaxation()!"); } void ARMAsmBackend::relaxInstruction(const MCInst &Inst, MCInst &Res) const { |