-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
LLVM assert when defining same native function with different types #1866
Comments
llvm Module::getOrInsertFunction: If a function with the name is found but type is different, llvm bitcasts the found function type to the requested type and returns it. Later, when we set calling convention, the given function's type isn't consistent with the one (before conversion) in llvm symbol table. After all, without mangling type information, we cannot have functions with the same name, right? |
Still a bug as of 6/21/2012. |
I have a very similar case:
This causes:
If I remove the |
Still a bug as of 6/22/2013 (good timing, past @catamorphism). In test suite, xfailed, as issue-1866.rs |
nominating production ready |
accepted for production-ready milestone |
I believe that I fixed this bug as part of the PR for #3678 (which has not yet |
It's no longer xfailed.
This is indeed fixed. I submitted #8986 to remove the xfail comment on the test, but the test was already moved to run-pass some time ago. |
- Allow ClashingExternDecl for lint-dead-code-3 - Update test case for rust-lang#5791 - Update test case for rust-lang#1866 - Update extern-abi-from-macro test case
- Allow ClashingExternDecl for lint-dead-code-3 - Update test case for rust-lang#5791 - Update test case for rust-lang#1866 - Update extern-abi-from-macro test case
- Allow ClashingExternDecl for lint-dead-code-3 - Update test case for rust-lang#5791 - Update test case for rust-lang#1866 - Update extern-abi-from-macro test case
- Allow ClashingExternDecl for lint-dead-code-3 - Update test case for rust-lang#5791 - Update test case for rust-lang#1866 - Update extern-abi-from-macro test case
The text was updated successfully, but these errors were encountered: