From: Daniel Sanders Date: Mon, 9 May 2016 15:37:52 +0000 (+0000) Subject: [mips][ias] Attempt to fix 'not all control paths return a value' reported by MSVC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bc041ce854c706c6211391c8695e7374e3c2f9e;p=llvm [mips][ias] Attempt to fix 'not all control paths return a value' reported by MSVC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268927 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/MipsRegisterInfo.cpp b/lib/Target/Mips/MipsRegisterInfo.cpp index 6981dd91cb8..860cf9cfd13 100644 --- a/lib/Target/Mips/MipsRegisterInfo.cpp +++ b/lib/Target/Mips/MipsRegisterInfo.cpp @@ -63,6 +63,8 @@ MipsRegisterInfo::getPointerRegClass(const MachineFunction &MF, case MipsPtrClass::GlobalPointer: return ABI.ArePtrs64bit() ? &Mips::GP64RegClass : &Mips::GP32RegClass; } + + llvm_unreachable("Unknown pointer kind"); } unsigned