From: Simon Pilgrim Date: Tue, 11 Dec 2018 10:44:54 +0000 (+0000) Subject: Fix "not all control paths return a value" MSVC warnings. NFCI. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec338c9dd3b64b65a03628d1f262dfdcb472ebf5;p=platform%2Fupstream%2Fllvm.git Fix "not all control paths return a value" MSVC warnings. NFCI. llvm-svn: 348838 --- 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 {