Skip to content

Commit d123343

Browse files
authored
Merge pull request swiftlang#8236 from hughbe/clang-latest-error-fixes
2 parents 19d4680 + d1849d7 commit d123343

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/SIL/Projection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ processUsersOfValue(ProjectionTree &Tree,
905905
DEBUG(llvm::dbgs() << " " << *User);
906906

907907
// First try to create a Projection for User.
908-
auto P = Projection::Projection(User);
908+
auto P = Projection(User);
909909

910910
// If we fail to create a projection, add User as a user to this node and
911911
// continue.

lib/SILOptimizer/Transforms/SpeculativeDevirtualizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ static bool tryToSpeculateTarget(FullApplySite AI,
499499
if (auto EMT = SubType.getAs<AnyMetatypeType>()) {
500500
auto InstTy = ClassType.getSwiftRValueType();
501501
auto *MetaTy = MetatypeType::get(InstTy, EMT->getRepresentation());
502-
auto CanMetaTy = CanMetatypeType::CanTypeWrapper(MetaTy);
502+
auto CanMetaTy = CanMetatypeType(MetaTy);
503503
ClassOrMetatypeType = SILType::getPrimitiveObjectType(CanMetaTy);
504504
}
505505

lib/SILOptimizer/Utils/Local.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,7 +2225,7 @@ CastOptimizer::optimizeCheckedCastBranchInst(CheckedCastBranchInst *Inst) {
22252225
auto EMT = EmiTy.castTo<AnyMetatypeType>();
22262226
auto *MetaTy = MetatypeType::get(LoweredConcreteTy.getSwiftRValueType(),
22272227
EMT->getRepresentation());
2228-
auto CanMetaTy = CanMetatypeType::CanTypeWrapper(MetaTy);
2228+
auto CanMetaTy = CanTypeWrapper<MetatypeType>(MetaTy);
22292229
auto SILMetaTy = SILType::getPrimitiveObjectType(CanMetaTy);
22302230
SILBuilderWithScope B(Inst);
22312231
auto *MI = B.createMetatype(FoundIEI->getLoc(), SILMetaTy);
@@ -2280,7 +2280,7 @@ CastOptimizer::optimizeCheckedCastBranchInst(CheckedCastBranchInst *Inst) {
22802280
// Get the SIL metatype of this type.
22812281
auto EMT = EMI->getType().castTo<AnyMetatypeType>();
22822282
auto *MetaTy = MetatypeType::get(ConcreteTy, EMT->getRepresentation());
2283-
auto CanMetaTy = CanMetatypeType::CanTypeWrapper(MetaTy);
2283+
auto CanMetaTy = CanTypeWrapper<MetatypeType>(MetaTy);
22842284
auto SILMetaTy = SILType::getPrimitiveObjectType(CanMetaTy);
22852285
SILBuilderWithScope B(Inst);
22862286
auto *MI = B.createMetatype(FoundIERI->getLoc(), SILMetaTy);

0 commit comments

Comments
 (0)