Skip to content

Commit 7d92756

Browse files
committed
DWARFCFIAnalysis.cpp - fix MSVC "not all control paths return a value" warning. NFC.
1 parent 415733b commit 7d92756

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/DWARFCFIChecker/DWARFCFIAnalysis.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ getUnwindRuleRegSet(const dwarf::UnwindRow &UnwindRow, DWARFRegNum Reg) {
7777
case dwarf::UnwindLocation::Location::RegPlusOffset:
7878
return {Loc.getRegister()};
7979
}
80+
llvm_unreachable("Unknown dwarf::UnwindLocation::Location enum");
8081
}
8182

8283
DWARFCFIAnalysis::DWARFCFIAnalysis(MCContext *Context, MCInstrInfo const &MCII,

0 commit comments

Comments
 (0)