Skip to content

Commit 4c605e5

Browse files
Fix wrong condition in base::internalize_symbols().
1 parent 8052f73 commit 4c605e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2286,7 +2286,7 @@ fn internalize_symbols(cx: &CrateContextList, reachable: &HashSet<&str>) {
22862286
let is_externally_visible = (linkage == llvm::ExternalLinkage as c_uint) ||
22872287
(linkage == llvm::LinkOnceODRLinkage as c_uint) ||
22882288
(linkage == llvm::WeakODRLinkage as c_uint);
2289-
let is_definition = llvm::LLVMIsDeclaration(val) != 0;
2289+
let is_definition = llvm::LLVMIsDeclaration(val) == 0;
22902290

22912291
// If this is a definition (as opposed to just a declaration)
22922292
// and externally visible, check if we can internalize it

0 commit comments

Comments
 (0)