mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merging in latest master
This commit is contained in:
@@ -167,7 +167,7 @@ static bool isPromotableAllocInst(SILInstruction *I) {
|
||||
// Check for array buffer allocation.
|
||||
auto *AI = dyn_cast<ApplyInst>(I);
|
||||
if (AI && AI->getNumArguments() == 3) {
|
||||
if (auto *Callee = AI->getCalleeFunction()) {
|
||||
if (auto *Callee = AI->getReferencedFunction()) {
|
||||
if (Callee->getName() == "swift_bufferAllocate")
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user