mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] SIL: Typed alloc_stack's wasMoved.
Help avoid errors with boolean flags by introducing UsesMoveableValueDebugInfo_t.
This commit is contained in:
@@ -649,14 +649,14 @@ static bool rewriteAllocBoxAsAllocStack(AllocBoxInst *ABI) {
|
||||
}
|
||||
return false;
|
||||
};
|
||||
auto *ASI =
|
||||
Builder.createAllocStack(ABI->getLoc(), ty, ABI->getVarInfo(),
|
||||
ABI->hasDynamicLifetime(), isLexical(), false
|
||||
auto *ASI = Builder.createAllocStack(ABI->getLoc(), ty, ABI->getVarInfo(),
|
||||
ABI->hasDynamicLifetime(), isLexical(),
|
||||
DoesNotUseMoveableValueDebugInfo
|
||||
#ifndef NDEBUG
|
||||
,
|
||||
true
|
||||
,
|
||||
true
|
||||
#endif
|
||||
);
|
||||
);
|
||||
|
||||
// Transfer a mark_uninitialized if we have one.
|
||||
SingleValueInstruction *StackBox = ASI;
|
||||
|
||||
Reference in New Issue
Block a user