Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/Transforms/InstCombine/InstructionCombining.cpp broken -- cannot link. #35295

Closed
llvmbot opened this issue Jan 15, 2018 · 4 comments
Closed
Assignees
Labels
bugzilla Issues migrated from bugzilla llvm:core

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Jan 15, 2018

Bugzilla Link 35947
Resolution FIXED
Resolved on Apr 06, 2018 20:59
Version 6.0
OS Windows NT
Blocks #35997
Reporter LLVM Bugzilla Contributor
CC @bostick,@EugeneZelenko
Fixed by commit(s) r326843 r329480

Extended Description

Fix by EugeneZelenko on Oct 24 2017 broke the linking of LLVM-C applications on Windows. LLVMInitializeInstCombine is declared extern "C" in the LLVM-C header Initialization.h, but not declared extern "C" surrounding the definition for the function in lib/Transforms/InstCombine/InstructionCombining.cpp. The inconsistency can cause a link fail. It's in release_60 and master. Could someone please fix this? One solution that works is to re-add the removed #include "llvm-c/Initialization.h"

@llvmbot
Copy link
Collaborator Author

llvmbot commented Jan 15, 2018

assigned to @bostick

@EugeneZelenko
Copy link
Contributor

I delivered Brenton Bostick;s fix in trunk in r326843.

It may be too late for 6.0, but should be backported to 6.0.1.

@tstellar
Copy link
Collaborator

tstellar commented Apr 7, 2018

Merged: r329480

@zmodem
Copy link
Collaborator

zmodem commented Nov 27, 2021

mentioned in issue #35997

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla llvm:core
Projects
None yet
Development

No branches or pull requests

4 participants