Skip to content

Commit 21fd875

Browse files
committed
[lld/mac] Fix warning about unused variable [NFC]
Change "dyn_cast" to "isa" to get rid of the unused variable "bitcodeFile". gcc warned with lld/MachO/Driver.cpp:531:17: warning: unused variable 'bitcodeFile' [-Wunused-variable] 531 | if (auto *bitcodeFile = dyn_cast<BitcodeFile>(file)) { | ^~~~~~~~~~~
1 parent 511af1b commit 21fd875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/MachO/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ static void compileBitcodeFiles() {
528528
// FIXME: Remove this once LTO.cpp honors config->exportDynamic.
529529
if (config->exportDynamic)
530530
for (InputFile *file : inputFiles)
531-
if (auto *bitcodeFile = dyn_cast<BitcodeFile>(file)) {
531+
if (isa<BitcodeFile>(file)) {
532532
warn("the effect of -export_dynamic on LTO is not yet implemented");
533533
break;
534534
}

0 commit comments

Comments
 (0)