Unverified Commit b652674d authored by Lucas Duarte Prates's avatar Lucas Duarte Prates Committed by GitHub
Browse files

[AsmWriter] Ensure getMnemonic doesn't return invalid pointers (#75783)

For instructions that don't map to a mnemonic string, the implementation
of MCInstPrinter::getMnemonic would return an invalid pointer due to the
result of the calculation of the instruction's position in the `AsmStrs`
table. This patch fixes the issue by ensuring those cases return a
`nullptr` value instead.

Fixes #74177.
parent 9d60e95b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment