Page MenuHomePhabricator

[NFC][OCaml] Simplify llvm_global_initializer using ptr_to_option
ClosedPublic

Authored by jberdine on Mar 25 2021, 5:03 PM.

Details

Summary

This diff uses ptr_to_option to convert a nullable C pointer to an
OCaml option instead of the redundant implementation in
llvm_global_initializer.

Diff Detail

Event Timeline

jberdine created this revision.Mar 25 2021, 5:03 PM
jberdine requested review of this revision.Mar 25 2021, 5:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 25 2021, 5:03 PM
vaivaswatha accepted this revision.Mar 25 2021, 7:28 PM
This revision is now accepted and ready to land.Mar 25 2021, 7:28 PM
This revision was landed with ongoing or failed builds.Mar 26 2021, 5:01 AM
This revision was automatically updated to reflect the committed changes.