mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[sil] Element shadowing of SILInstruction::getKind() by renaming MarkUninitializedInst::get{,MarkUninitialized}Kind().
Interestingly this problem can only occur if one invokes MarkUninitializedInst::getKind() directly. Once our instruction is just a SILInstruction, we call the appropriate method so we didn't notice it. I used Xcode's refactoring functionality to find all of the invocation locations.
This commit is contained in:
@@ -518,7 +518,7 @@ static bool rewriteAllocBoxAsAllocStack(AllocBoxInst *ABI) {
|
||||
auto *User = HeapBox->getSingleUse()->getUser();
|
||||
if (auto *MUI = dyn_cast<MarkUninitializedInst>(User)) {
|
||||
HeapBox = MUI;
|
||||
Kind = MUI->getKind();
|
||||
Kind = MUI->getMarkUninitializedKind();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user