Reset indent between functions in SPIR-V disassembly

* If something goes wrong and the indent isn't properly tidied, we know we can
  at least start from 0 at a new function
This commit is contained in:
baldurk
2026-07-15 11:04:52 +01:00
parent 1e40fa4251
commit 4190a32c8c
@@ -699,7 +699,9 @@ rdcstr Reflector::Disassemble(const rdcstr &entryPoint,
{
ret += "}\n\n";
lineNum += 2;
indent.resize(indent.size() - 2);
// completely reset indent, just in case something went wrong in a previous function and
// it didn't reset itself
indent.clear();
continue;
}
// indent around control flow