This is an archive of the discontinued LLVM Phabricator instance.

AutoUpgrade: Fix assertion on invalid name mangling usage
ClosedPublic

Authored by arsenm on Nov 15 2022, 5:40 PM.

Details

Summary

This was trying to auto-upgrade a read_register call with missing type
mangling. This first would break since getCalledFunction checks the
callee type is consistent, so this would assert there. After that,
the replacement code would die on the type mismatch. Be more
defensive and let the verifier code produce an error that the IR
is broken.

Diff Detail

Event Timeline

arsenm created this revision.Nov 15 2022, 5:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2022, 5:40 PM
arsenm requested review of this revision.Nov 15 2022, 5:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2022, 5:40 PM
Herald added a subscriber: wdng. · View Herald Transcript
This revision is now accepted and ready to land.Nov 16 2022, 12:55 AM