Lines Matching +full:over +full:- +full:current
1 //===--- InterpState.cpp - Interpreter for the constexpr VM -----*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
20 : Parent(Parent), M(M), P(P), Stk(Stk), Ctx(Ctx), Current(nullptr) {}
23 while (Current) {
24 InterpFrame *Next = Current->Caller;
25 delete Current;
26 Current = Next;
30 DeadBlock *Next = DeadBlocks->Next;
39 for (DeadBlock *DB = DeadBlocks; DB; DB = DB->Next) {
40 for (Pointer *P = DB->B.Pointers; P; P = P->Next) {
41 P->PointeeStorage.BS.Pointee = nullptr;
49 if (Current && Current->Caller)
50 return Current;
55 QualType Type = E->getType();
62 const Descriptor *Desc = B->getDescriptor();
65 if (B->hasPointers()) {
66 size_t Size = B->getSize();
68 // Allocate a new block, transferring over pointers.
72 std::memset(D->B.rawData(), 0, D->B.getSize());
75 if (B->IsInitialized && Desc->MoveFn) {
76 Desc->MoveFn(B, B->data(), D->data(), Desc);
77 if (Desc->getMetadataSize() > 0)
78 std::memcpy(D->rawData(), B->rawData(), Desc->getMetadataSize());
80 D->B.IsInitialized = B->IsInitialized;
82 // We moved the contents over to the DeadBlock.
83 B->IsInitialized = false;
84 } else if (B->IsInitialized) {
85 B->invokeDtor();
97 CCEDiag(Source->getExprLoc(), diag::note_constexpr_memory_leak)
98 << (It.second.size() - 1) << Source->getSourceRange();