Skip to content

Commit

Permalink
Remove m_pModule null check
Browse files Browse the repository at this point in the history
Remove m_pModule null check since all the code in DraftDebug class
assumes it to be non-null.
  • Loading branch information
fda0 authored and igcbot committed Oct 28, 2024
1 parent ee68bc3 commit dc5e778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IGC/DebugInfo/DwarfDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ DIE *DwarfDebug::updateSubprogramScopeDIE(CompileUnit *SPCU, DISubprogram *SP) {
}
}

if (m_pModule && m_pModule->getFunction() &&
if (m_pModule->getFunction() &&
m_pModule->getFunction()->getSubprogram() == SP &&
m_pModule->GetType() == VISAModule::ObjectType::SUBROUTINE) {
SPCU->addUInt(SPDie, dwarf::DW_AT_calling_convention, dwarf::DW_FORM_data1,
Expand Down

0 comments on commit dc5e778

Please sign in to comment.