@@ -708,37 +708,37 @@ class ModuleDependencyInfo {
708708 bool isStaticLibrary () const {
709709 if (auto *detail = getAsSwiftInterfaceModule ())
710710 return detail->isStatic ;
711- else if (auto *detail = getAsSwiftBinaryModule ())
711+ if (auto *detail = getAsSwiftBinaryModule ())
712712 return detail->isStatic ;
713713 return false ;
714714 }
715715
716716 const ArrayRef<std::string> getHeaderInputSourceFiles () const {
717717 if (auto *detail = getAsSwiftInterfaceModule ())
718718 return detail->textualModuleDetails .bridgingSourceFiles ;
719- else if (auto *detail = getAsSwiftSourceModule ())
719+ if (auto *detail = getAsSwiftSourceModule ())
720720 return detail->textualModuleDetails .bridgingSourceFiles ;
721- else if (auto *detail = getAsSwiftBinaryModule ())
721+ if (auto *detail = getAsSwiftBinaryModule ())
722722 return detail->headerSourceFiles ;
723723 return {};
724724 }
725725
726726 const ArrayRef<std::string> getHeaderDependencies () const {
727727 if (auto *detail = getAsSwiftInterfaceModule ())
728728 return detail->textualModuleDetails .bridgingModuleDependencies ;
729- else if (auto *detail = getAsSwiftSourceModule ())
729+ if (auto *detail = getAsSwiftSourceModule ())
730730 return detail->textualModuleDetails .bridgingModuleDependencies ;
731- else if (auto *detail = getAsSwiftBinaryModule ())
731+ if (auto *detail = getAsSwiftBinaryModule ())
732732 return detail->headerModuleDependencies ;
733733 return {};
734734 }
735735
736736 std::vector<std::string> getCommandline () const {
737737 if (auto *detail = getAsClangModule ())
738738 return detail->buildCommandLine ;
739- else if (auto *detail = getAsSwiftInterfaceModule ())
739+ if (auto *detail = getAsSwiftInterfaceModule ())
740740 return detail->textualModuleDetails .buildCommandLine ;
741- else if (auto *detail = getAsSwiftSourceModule ())
741+ if (auto *detail = getAsSwiftSourceModule ())
742742 return detail->textualModuleDetails .buildCommandLine ;
743743 return {};
744744 }
@@ -747,10 +747,10 @@ class ModuleDependencyInfo {
747747 if (isSwiftInterfaceModule ())
748748 return cast<SwiftInterfaceModuleDependenciesStorage>(storage.get ())
749749 ->updateCommandLine (newCommandLine);
750- else if (isSwiftSourceModule ())
750+ if (isSwiftSourceModule ())
751751 return cast<SwiftSourceModuleDependenciesStorage>(storage.get ())
752752 ->updateCommandLine (newCommandLine);
753- else if (isClangModule ())
753+ if (isClangModule ())
754754 return cast<ClangModuleDependencyStorage>(storage.get ())
755755 ->updateCommandLine (newCommandLine);
756756 llvm_unreachable (" Unexpected type" );
0 commit comments