File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -574,12 +574,7 @@ void linkingt::duplicate_code_symbol(
574
574
new_symbol,
575
575
" function declaration conflicts with with weak definition" );
576
576
else
577
- {
578
- // new weak symbol should have been renamed
579
- assert (!new_symbol.is_weak );
580
577
old_symbol.value .make_nil ();
581
- old_symbol.is_weak =false ;
582
- }
583
578
}
584
579
else if (new_symbol.is_weak )
585
580
{
@@ -593,12 +588,6 @@ void linkingt::duplicate_code_symbol(
593
588
new_symbol,
594
589
" ignoring conflicting weak function declaration" );
595
590
}
596
- else
597
- {
598
- // new weak symbol should have been renamed
599
- assert (!old_symbol.is_weak );
600
- old_symbol.is_weak =true ;
601
- }
602
591
}
603
592
// mismatch on number of parameters is definitively an error
604
593
else if ((old_t .parameters ().size ()<new_t .parameters ().size () &&
@@ -759,6 +748,7 @@ void linkingt::duplicate_code_symbol(
759
748
rename_symbol (new_symbol.type );
760
749
old_symbol.value =new_symbol.value ;
761
750
old_symbol.type =new_symbol.type ; // for parameter identifiers
751
+ old_symbol.is_weak =new_symbol.is_weak ;
762
752
}
763
753
else if (to_code_type (old_symbol.type ).get_inlined ())
764
754
{
You can’t perform that action at this time.
0 commit comments