Skip to content

Commit 1e093ab

Browse files
committed
weak symbols need not necessarily be treated as file-local
1 parent 36f81d6 commit 1e093ab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/linking/linking.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,7 @@ bool linkingt::needs_renaming_non_type(
502502
// These are static functions, or static variables
503503
// inside static function bodies.
504504
if(new_symbol.is_file_local ||
505-
old_symbol.is_file_local ||
506-
(new_symbol.is_weak &&
507-
old_symbol.is_weak))
505+
old_symbol.is_file_local)
508506
return true;
509507

510508
return false;

0 commit comments

Comments
 (0)