Summary: LLVM.global_initializer casues a cast assertion failure if the value passed to it is not a GlobalVariable. So we first check if it is a GlobalVariable and only then ask for an initiliazer. This is hidden if LLVM is built without assertions. Reviewed By: jberdine Differential Revision: D15601632 fbshipit-source-id: e9db23a12master
parent
5b2a36409c
commit
e45a05a574
Loading…
Reference in new issue