We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3388c5a commit a16d33eCopy full SHA for a16d33e
clang/lib/AST/Interp/Program.h
@@ -45,7 +45,8 @@ class Program final {
45
// but primitive arrays might have an InitMap* heap allocated and
46
// that needs to be freed.
47
for (Global *G : Globals)
48
- G->block()->invokeDtor();
+ if (Block *B = G->block(); B->isInitialized())
49
+ B->invokeDtor();
50
51
// Records might actually allocate memory themselves, but they
52
// are allocated using a BumpPtrAllocator. Call their desctructors
0 commit comments