We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8052f73 commit 4c605e5Copy full SHA for 4c605e5
src/librustc_trans/base.rs
@@ -2286,7 +2286,7 @@ fn internalize_symbols(cx: &CrateContextList, reachable: &HashSet<&str>) {
2286
let is_externally_visible = (linkage == llvm::ExternalLinkage as c_uint) ||
2287
(linkage == llvm::LinkOnceODRLinkage as c_uint) ||
2288
(linkage == llvm::WeakODRLinkage as c_uint);
2289
- let is_definition = llvm::LLVMIsDeclaration(val) != 0;
+ let is_definition = llvm::LLVMIsDeclaration(val) == 0;
2290
2291
// If this is a definition (as opposed to just a declaration)
2292
// and externally visible, check if we can internalize it
0 commit comments