[NFC] SIL: Typed alloc_stack's wasMoved.

Help avoid errors with boolean flags by introducing
UsesMoveableValueDebugInfo_t.
This commit is contained in:
Nate Chandler
2024-03-08 07:43:53 -08:00
parent 5ccec0e31c
commit 611511a71f
8 changed files with 45 additions and 36 deletions

View File

@@ -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;