mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SIL: Replace some calls to getDeclaredType() with getDeclaredInterfaceType()
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user