Skip to content

Commit e8d7360

Browse files
shruthi-hpsys_zuul
authored andcommitted
Initialize symbol name in symbol table. Was causing run to run differences in bin file
generated. Change-Id: I4b31da12d3c58d91a9b90a2a5903aa2998bcef9c
1 parent 22c98c4 commit e8d7360

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4792,6 +4792,7 @@ namespace IGC
47924792
IGC_ASSERT(name.size() <= vISA::MAX_SYMBOL_NAME_LENGTH);
47934793

47944794
vISA::GenSymEntry sEntry;
4795+
memset(sEntry.s_name, '0', vISA::MAX_SYMBOL_NAME_LENGTH);
47954796
strcpy_s(sEntry.s_name, vISA::MAX_SYMBOL_NAME_LENGTH, name.str().c_str());
47964797
MDNode* md = pGlobal->getMetadata("ConstSampler");
47974798
if (md)

0 commit comments

Comments
 (0)