This is an archive of the discontinued LLVM Phabricator instance.

[mlir][LLVM] Fix crash when using opaque pointers in function signatures
ClosedPublic

Authored by zero9178 on Apr 22 2022, 12:20 PM.

Details

Summary

Using opaque pointers in function signatures leads to an attempt to recursively convert all types, including sub types in LLVM types. In the case of LLVM pointers, it may not have a subtype aka element type if it is opaque which would then lead to a null pointer dereference.

Diff Detail

Event Timeline

zero9178 created this revision.Apr 22 2022, 12:20 PM
zero9178 requested review of this revision.Apr 22 2022, 12:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2022, 12:20 PM
ftynse accepted this revision.Apr 22 2022, 2:27 PM
This revision is now accepted and ready to land.Apr 22 2022, 2:27 PM