OSDN Git Service

Suppress a warning. NFC.
authorGabor Horvath <xazax.hun@gmail.com>
Wed, 9 Aug 2017 10:38:53 +0000 (10:38 +0000)
committerGabor Horvath <xazax.hun@gmail.com>
Wed, 9 Aug 2017 10:38:53 +0000 (10:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310459 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/MCTargetDesc/AMDGPUAsmBackend.cpp

index 1586914..63a984a 100644 (file)
@@ -78,7 +78,7 @@ static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
                                  MCContext *Ctx) {
   int64_t SignedValue = static_cast<int64_t>(Value);
 
-  switch (Fixup.getKind()) {
+  switch (static_cast<unsigned>(Fixup.getKind())) {
   case AMDGPU::fixup_si_sopp_br: {
     int64_t BrImm = (SignedValue - 4) / 4;