[PATCH] D136826: [clang][Interp] Make sure we free() allocated InitMaps
Anton Daubert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 31 06:40:08 PDT 2022
antondaubert added inline comments.
================
Comment at: clang/lib/AST/Interp/Program.h:54-56
+ for (Global *G : Globals) {
+ G->block()->invokeDtor();
+ }
----------------
Seems like this change generates a
```
use-of-uninitialized-value lib/AST/Interp/Descriptor.cpp:150:22 in dtorRecord(clang::interp::Block*, char*, clang::interp::Descriptor*)
```
when executing the test test/AST/Interp/arrays.cpp with a memory sanitizer.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136826/new/
https://reviews.llvm.org/D136826
More information about the cfe-commits
mailing list