1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Fix "not all control paths return a value" MSVC warnings. NFCI.

llvm-svn: 348838
This commit is contained in:
Simon Pilgrim 2018-12-11 10:44:54 +00:00
parent d17978836b
commit 908f7120f3

View File

@ -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 {