File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1664,7 +1664,7 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
1664
1664
}
1665
1665
1666
1666
// Metatypes preserve their instance type through lowering.
1667
- if (auto loweredMT = loweredType.getAs <MetatypeType>()) {
1667
+ if (loweredType.is <MetatypeType>()) {
1668
1668
if (auto formalMT = dyn_cast<MetatypeType>(formalType)) {
1669
1669
return isLoweringOf (loweredType.getMetatypeInstanceType (F.getModule ()),
1670
1670
formalMT.getInstanceType ());
@@ -3010,7 +3010,7 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
3010
3010
void checkSwitchValueInst (SwitchValueInst *SVI) {
3011
3011
// TODO: Type should be either integer or function
3012
3012
auto Ty = SVI->getOperand ()->getType ();
3013
- require (Ty.getAs <BuiltinIntegerType>() || Ty.getAs <SILFunctionType>(),
3013
+ require (Ty.is <BuiltinIntegerType>() || Ty.is <SILFunctionType>(),
3014
3014
" switch_value operand should be either of an integer "
3015
3015
" or function type" );
3016
3016
You can’t perform that action at this time.
0 commit comments