mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -965,6 +965,11 @@ bool CSE::canHandle(SILInstruction *Inst) {
|
||||
|
||||
if (isLazyPropertyGetter(AI))
|
||||
return true;
|
||||
|
||||
if (SILFunction *callee = AI->getReferencedFunctionOrNull()) {
|
||||
if (callee->isGlobalInit())
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user