Ensure names are added at the end of name section in SPIR-V

* The iterator ++ will skip past nops but this could overrun into subsequent
  sections if they contain only nops (ie. are empty)
This commit is contained in:
baldurk
2025-09-04 11:39:32 +01:00
parent c8dc97a34e
commit 6ab25b2d01
@@ -272,6 +272,9 @@ void Editor::SetName(Id id, const rdcstr &name)
break;
}
if(End(Section::DebugNames) < it)
it = End(Section::DebugNames);
InsertOperation(op, it.offs());
}