SIL: Replace some calls to getDeclaredType() with getDeclaredInterfaceType()

This commit is contained in:
Slava Pestov
2020-07-31 13:11:07 -04:00
parent 45fc0bc4db
commit 0ef12ec8aa
8 changed files with 15 additions and 14 deletions

View File

@@ -108,7 +108,7 @@ bool StringOptimization::run(SILFunction *F) {
if (!stringDecl)
return false;
stringType = SILType::getPrimitiveObjectType(
CanType(stringDecl->getDeclaredType()));
stringDecl->getDeclaredInterfaceType()->getCanonicalType());
bool changed = false;