[PATCH] D64962: appendToGlobalCtors: allow for llvm.global_ctors functions of varying type

Anthony Eden via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 18:32:01 PDT 2019


aeden added a comment.

In the meantime I've "worked around this" by casting my ConstantExpr * into a Function * and passing it off as one when calling appendToGlobalCtors. This happens to work only because the pointer is only ever used as a Constant * (possible Q: Why should appendToGlobalCtors take a Function * in the first place?)


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64962/new/

https://reviews.llvm.org/D64962





More information about the llvm-commits mailing list