We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc5b570 commit e9b7d78Copy full SHA for e9b7d78
llvm/lib/DWARFCFIChecker/DWARFCFIAnalysis.cpp
@@ -222,6 +222,9 @@ void DWARFCFIAnalysis::checkRegDiff(
222
switch (PrevLoc.getLocation()) {
223
case dwarf::UnwindLocation::Same:
224
case dwarf::UnwindLocation::RegPlusOffset:
225
+ assert(MaybePrevRefReg &&
226
+ "when the unwinding rule is the same value, or reg plus offset, "
227
+ "there should always exist a reference register");
228
if (Writes.count(MaybePrevRefReg.value())) {
229
Context->reportError(
230
Inst.getLoc(),
0 commit comments