From 8bc041ce854c706c6211391c8695e7374e3c2f9e Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Mon, 9 May 2016 15:37:52 +0000 Subject: [PATCH] [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 --- lib/Target/Mips/MipsRegisterInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) 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