http://llvm.org/bugs/show_bug.cgi?id=20076
Reid Kleckner <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Reid Kleckner <[email protected]> --- When you use a dllimported function in a global constant initializer, you end up getting the address of a thunk from the import library instead of the address of the actual function. It's worse for globals, where you get a link error instead. This will be hard to fix because a GlobalValue in LLVM is a Constant, and LLVM optimizers will try to fold it into the initializer. *** This bug has been marked as a duplicate of bug 19955 *** -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
