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 6a38936 commit bc5b570Copy full SHA for bc5b570
llvm/lib/DWARFCFIChecker/DWARFCFIAnalysis.cpp
@@ -187,9 +187,12 @@ void DWARFCFIAnalysis::checkRegDiff(
187
188
auto MaybeLLVMReg = MCRI->getLLVMRegNum(Reg, IsEH);
189
if (!MaybeLLVMReg) {
190
- assert(PrevLoc == NextLoc &&
191
- "The dwarf register does not have a LLVM number, so the unwind info "
192
- "for it should not change");
+ if (!(PrevLoc == NextLoc))
+ Context->reportWarning(
+ Inst.getLoc(),
193
+ formatv("the dwarf register {0} does not have a LLVM number, but its "
194
+ "unwind info changed. Ignoring this change",
195
+ Reg));
196
return;
197
}
198
const char *RegName = MCRI->getName(*MaybeLLVMReg);
0 commit comments