Skip to content

Commit 3676977

Browse files
authored
Merge pull request #39770 from bnbarham/main-to-next-conflicts
[NFC] Formatting cleanup to help with next conflicts
2 parents d3618ef + 6243371 commit 3676977

File tree

7 files changed

+14
-15
lines changed

7 files changed

+14
-15
lines changed

include/swift/AST/Ownership.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
#include "llvm/Support/Compiler.h"
2525
#include "llvm/Support/ErrorHandling.h"
2626
#include "llvm/Support/raw_ostream.h"
27-
#include <stdint.h>
2827
#include <assert.h>
29-
#include <climits>
28+
#include <limits.h>
29+
#include <stdint.h>
3030

3131
namespace swift {
3232

include/swift/Basic/Platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
#include "swift/Basic/LLVM.h"
1717
#include "swift/Config.h"
18-
#include "llvm/ADT/StringRef.h"
1918
#include "clang/Basic/DarwinSDKInfo.h"
19+
#include "llvm/ADT/StringRef.h"
2020

2121
namespace llvm {
2222
class Triple;

lib/Basic/Platform.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -465,14 +465,12 @@ swift::getSwiftRuntimeCompatibilityVersionForTarget(
465465
return None;
466466
}
467467

468-
469468
static const llvm::VersionTuple minimumMacCatalystDeploymentTarget() {
470469
return llvm::VersionTuple(13, 1);
471470
}
472471

473-
llvm::VersionTuple
474-
swift::getTargetSDKVersion(clang::DarwinSDKInfo &SDKInfo,
475-
const llvm::Triple &triple) {
472+
llvm::VersionTuple swift::getTargetSDKVersion(clang::DarwinSDKInfo &SDKInfo,
473+
const llvm::Triple &triple) {
476474
// Retrieve the SDK version.
477475
auto SDKVersion = SDKInfo.getVersion();
478476

@@ -481,9 +479,10 @@ swift::getTargetSDKVersion(clang::DarwinSDKInfo &SDKInfo,
481479
// down to the linker.
482480
if (tripleIsMacCatalystEnvironment(triple)) {
483481
if (const auto *MacOStoMacCatalystMapping = SDKInfo.getVersionMapping(
484-
clang::DarwinSDKInfo::OSEnvPair::macOStoMacCatalystPair())) {
485-
return MacOStoMacCatalystMapping->map(
486-
SDKVersion, minimumMacCatalystDeploymentTarget(), None).getValueOr(llvm::VersionTuple(0, 0, 0));
482+
clang::DarwinSDKInfo::OSEnvPair::macOStoMacCatalystPair())) {
483+
return MacOStoMacCatalystMapping
484+
->map(SDKVersion, minimumMacCatalystDeploymentTarget(), None)
485+
.getValueOr(llvm::VersionTuple(0, 0, 0));
487486
}
488487
return llvm::VersionTuple(0, 0, 0);
489488
}

lib/Driver/DarwinToolChains.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
#include "swift/Basic/TaskQueue.h"
2323
#include "swift/Config.h"
2424
#include "swift/Driver/Compilation.h"
25-
#include "clang/Basic/DarwinSDKInfo.h"
2625
#include "swift/Driver/Driver.h"
2726
#include "swift/Driver/Job.h"
2827
#include "swift/Option/Options.h"
28+
#include "clang/Basic/DarwinSDKInfo.h"
2929
#include "clang/Basic/Version.h"
3030
#include "clang/Driver/Util.h"
3131
#include "llvm/ADT/StringSwitch.h"

lib/DriverTool/swift_symbolgraph_extract_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ int swift_symbolgraph_extract_main(ArrayRef<const char *> Args,
235235
// don't need to print these errors.
236236
CI.removeDiagnosticConsumer(&DiagPrinter);
237237

238-
SmallVector<ModuleDecl *, 32> Overlays;
238+
SmallVector<ModuleDecl *, 8> Overlays;
239239
M->findDeclaredCrossImportOverlaysTransitive(Overlays);
240240
for (const auto *OM : Overlays) {
241241
auto CIM = CI.getASTContext().getModuleByName(OM->getNameStr());

lib/IRGen/GenDecl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ void IRGenModule::emitRuntimeRegistration() {
697697
llvm::ConstantInt::get(Int32Ty, 0),
698698
};
699699
auto begin = llvm::ConstantExpr::getGetElementPtr(
700-
protocols->getType()->getPointerElementType(), protocols, beginIndices);
700+
protocols->getType()->getPointerElementType(), protocols, beginIndices);
701701
llvm::Constant *endIndices[] = {
702702
llvm::ConstantInt::get(Int32Ty, 0),
703703
llvm::ConstantInt::get(Int32Ty, SwiftProtocols.size()),
@@ -725,7 +725,7 @@ void IRGenModule::emitRuntimeRegistration() {
725725
auto end = llvm::ConstantExpr::getGetElementPtr(
726726
conformances->getType()->getPointerElementType(),
727727
conformances, endIndices);
728-
728+
729729
RegIGF.Builder.CreateCall(getRegisterProtocolConformancesFn(), {begin, end});
730730
}
731731

lib/SILOptimizer/Transforms/SILMem2Reg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ void StackAllocationPromoter::propagateLiveness(
927927
// If liveness has not been propagated, go over the incoming operands and mark
928928
// any operand values that are proactivePhis as live
929929
livePhis.insert(proactivePhi);
930-
SmallVector<SILValue, 16> incomingPhiVals;
930+
SmallVector<SILValue, 4> incomingPhiVals;
931931
proactivePhi->getIncomingPhiValues(incomingPhiVals);
932932
for (auto &inVal : incomingPhiVals) {
933933
auto *inPhi = dyn_cast<SILPhiArgument>(inVal);

0 commit comments

Comments
 (0)