[llvm] r348838 - Fix "not all control paths return a value" MSVC warnings. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 11 02:44:54 PST 2018
Author: rksimon
Date: Tue Dec 11 02:44:54 2018
New Revision: 348838
URL: http://llvm.org/viewvc/llvm-project?rev=348838&view=rev
Log:
Fix "not all control paths return a value" MSVC warnings. NFCI.
Modified:
llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
Modified: llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h?rev=348838&r1=348837&r2=348838&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h (original)
+++ llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h Tue Dec 11 02:44:54 2018
@@ -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 {
More information about the llvm-commits
mailing list