From ec338c9dd3b64b65a03628d1f262dfdcb472ebf5 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 11 Dec 2018 10:44:54 +0000 Subject: [PATCH] Fix "not all control paths return a value" MSVC warnings. NFCI. llvm-svn: 348838 --- llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h b/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h index 21cdeee..fea6559 100644 --- a/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h @@ -92,6 +92,7 @@ public: case DstType::Ty_Reg: return MRI.getType(Reg); } + llvm_unreachable("Unrecognised DstOp::DstType enum"); } DstType getDstOpKind() const { return Ty; } @@ -136,6 +137,7 @@ public: case SrcType::Ty_MIB: return MRI.getType(SrcMIB->getOperand(0).getReg()); } + llvm_unreachable("Unrecognised SrcOp::SrcType enum"); } unsigned getReg() const { @@ -147,6 +149,7 @@ public: case SrcType::Ty_MIB: return SrcMIB->getOperand(0).getReg(); } + llvm_unreachable("Unrecognised SrcOp::SrcType enum"); } CmpInst::Predicate getPredicate() const { -- 2.7.4