Skip to content

Commit 85dfcb6

Browse files
aparshin-inteligcbot
authored andcommitted
fixup erroneous assert in DebugInfo library
1 parent 745d426 commit 85dfcb6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

IGC/DebugInfo/VISADebugDecoder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ void IGC::DbgDecoder::DbgInfoFormat::print(llvm::raw_ostream& OS) const {
110110
OS << "<VISADebugInfo>\n";
111111
OS << "Kernel: " << kernelName << "\n";
112112
OS << "RelocOffset: " << relocOffset << "\n";
113-
OS << "NumSubroutines: " << numSubRoutines << "\n";
113+
OS << "NumSubroutines: " << subs.size() << "\n";
114114

115-
IGC_ASSERT(numSubRoutines == subs.size());
116-
OS << "Subroutines:\n ";
115+
OS << "Subroutines: [\n ";
117116
PrintItems(OS, subs, "\n ");
117+
OS << " ]\n";
118118
OS << "CFI: {\n";
119119
cfi.print(OS);
120120
OS << " }\n";

IGC/DebugInfo/VISADebugDecoder.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ namespace IGC
242242
std::vector<std::pair<unsigned int, unsigned int>> CISAIndexMap;
243243
std::vector<VarInfo> Vars;
244244

245-
uint16_t numSubRoutines = 0;
246245
std::vector<SubroutineInfo> subs;
247246
CallFrameInfo cfi;
248247

0 commit comments

Comments
 (0)