aheejin added a comment. This patch addresses global types, but do we have a way to recognize function types for undefined functions? I filed a bug for that: PR39557 <https://bugs.llvm.org/show_bug.cgi?id=39557> Repository: rL LLVM https://reviews.llvm.org/D53842