Files
Matt GodboltandClaude b04e56df08 Fix unsafe type casting in assembly processing tools
Root cause: Tools were unsafely casting compilationInfo.asm to string when
it could be ParsedAsmResultLine[] or undefined, causing runtime crashes
when splitLines() tried to call .split() on non-string values.

Changes:
- Add extractTextLines() helper to safely extract text from union types
- Add normalizeAsmToString() helper to convert asm data to string for parsers
- Fix 3 tools using unsafe casts: osaca-tool, x86to6502-tool, llvm-mca-tool
- Add proper null checks and error handling for missing assembly data
- Remove unnecessary else clauses per linter suggestions

This eliminates the root cause of "text.split is not a function" errors
while maintaining clean separation between string processing and type handling.

Fixes COMPILER-EXPLORER-C2N
Fixes COMPILER-EXPLORER-AWW

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-06 16:08:59 -05:00
..
2024-04-22 20:01:30 +02:00
2025-02-26 11:11:12 -06:00
2025-05-25 16:12:33 +00:00
2025-02-25 13:05:50 -06:00
2025-02-26 10:56:26 -06:00