File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -514,15 +514,13 @@ void macho::resolveLCLinkerOptions() {
514
514
for (unsigned i = 0 ; i < LCLinkerOptions.size (); ++i) {
515
515
StringRef arg = LCLinkerOptions[i];
516
516
if (arg.consume_front (" -l" )) {
517
- if (config->ignoreAutoLinkOptions .contains (arg))
518
- continue ;
517
+ assert (!config->ignoreAutoLinkOptions .contains (arg));
519
518
addLibrary (arg, /* isNeeded=*/ false , /* isWeak=*/ false ,
520
519
/* isReexport=*/ false , /* isHidden=*/ false ,
521
520
/* isExplicit=*/ false , LoadType::LCLinkerOption);
522
521
} else if (arg == " -framework" ) {
523
522
StringRef name = LCLinkerOptions[++i];
524
- if (config->ignoreAutoLinkOptions .contains (name))
525
- continue ;
523
+ assert (!config->ignoreAutoLinkOptions .contains (name));
526
524
addFramework (name, /* isNeeded=*/ false , /* isWeak=*/ false ,
527
525
/* isReexport=*/ false , /* isExplicit=*/ false ,
528
526
LoadType::LCLinkerOption);
You can’t perform that action at this time.
0 commit comments