HomePhabricator

[NFC][OCaml] Simplify llvm_global_initializer using ptr_to_option

Authored by jberdine on Mar 25 2021, 4:07 PM.

Description

[NFC][OCaml] Simplify llvm_global_initializer using ptr_to_option

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.

Differential Revision: https://reviews.llvm.org/D99391