diff --git a/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp b/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp index d95cbb70225..3ff1c0700dd 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp @@ -422,6 +422,7 @@ CFIProgram::Instruction::getOperandAsUnsigned(const CFIProgram &CFIP, return Operand * CodeAlignmentFactor; } } + llvm_unreachable("invalid operand type"); } llvm::Expected @@ -474,6 +475,7 @@ CFIProgram::Instruction::getOperandAsSigned(const CFIProgram &CFIP, return Operand * DataAlignmentFactor; } } + llvm_unreachable("invalid operand type"); } Error UnwindTable::parseRows(const CFIProgram &CFIP, UnwindRow &Row,