diff options
author | Aditya Kumar <hiraditya@msn.com> | 2019-10-01 03:45:09 +0000 |
---|---|---|
committer | Aditya Kumar <hiraditya@msn.com> | 2019-10-01 03:45:09 +0000 |
commit | 07286cb384c48301111cdf80fc31023befc71ee6 (patch) | |
tree | ae056f72568a24ba6fe7702c281e291f9c17cf20 /llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp | |
parent | fdea5e02ce598be1cdda0259381039e8b5d6cba5 (diff) | |
download | bcm5719-llvm-07286cb384c48301111cdf80fc31023befc71ee6.tar.gz bcm5719-llvm-07286cb384c48301111cdf80fc31023befc71ee6.zip |
[OCaml] Handle nullptr in Llvm.global_initializer
LLVMGetInitializer returns nullptr in case there is no
initializer. There is not much that can be done with nullptr in OCaml,
not even test if it is null. Also, there does not seem to be a C or
OCaml API to test if there is an initializer. So this diff changes
Llvm.global_initializer to return an option.
Differential Revision: https://reviews.llvm.org/D65195
Reviewed by: whitequark
Authored by: kren1
llvm-svn: 373299
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp')
0 files changed, 0 insertions, 0 deletions