Skip to content

Commit b9907c6

Browse files
authored
Merge pull request #59792 from tshortli/fix-warnings
NFC: Fix a few warnings emitted when building swift-frontend
2 parents e5b02ee + 3308e4b commit b9907c6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/FrontendTool/FrontendTool.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2141,7 +2141,8 @@ int swift::performFrontend(ArrayRef<const char *> Args,
21412141
}
21422142
};
21432143

2144-
auto emitParseableFinishedMessage = [&Invocation, &Args, &FileSpecificDiagnostics](int ExitStatus) {
2144+
auto emitParseableFinishedMessage = [&Invocation, &FileSpecificDiagnostics](
2145+
int ExitStatus) {
21452146
const auto &IO = Invocation.getFrontendOptions().InputsAndOutputs;
21462147
const auto OSPid = getpid();
21472148
const auto ProcInfo = sys::TaskProcessInformation(OSPid);

lib/Serialization/ModuleFile.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,11 @@ class ModuleFile
620620
/// Note that this may cause other decls to load as well.
621621
void loadExtensions(NominalTypeDecl *nominal);
622622

623-
/// Load the methods within the given class that produce
623+
/// Load the methods within the given nominal type that produce
624624
/// Objective-C class or instance methods with the given selector.
625625
///
626-
/// \param classDecl The class in which we are searching for @objc methods.
627-
/// The search only considers this class and its extensions; not any
626+
/// \param typeDecl The nominal in which we are searching for @objc methods.
627+
/// The search only considers this type and its extensions; not any
628628
/// superclasses.
629629
///
630630
/// \param selector The selector to search for.

0 commit comments

Comments
 (0)