aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BasicBlockSections.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-01-16 12:49:11 -0800
committerCraig Topper <craig.topper@sifive.com>2024-01-16 13:52:17 -0800
commit142f270c279f2576e4618fc0d1121181c7531fdf (patch)
tree85d5f796627257dc96c868e57800858ce2abc5a1 /llvm/lib/CodeGen/BasicBlockSections.cpp
parentdda2ce82c2ec8a3b988636c6cebb76eb32b4de05 (diff)
downloadllvm-142f270c279f2576e4618fc0d1121181c7531fdf.zip
llvm-142f270c279f2576e4618fc0d1121181c7531fdf.tar.gz
llvm-142f270c279f2576e4618fc0d1121181c7531fdf.tar.bz2
Recommit "[AST] Use APIntStorage to fix memory leak in EnumConstantDecl. (#78311)"
With lldb build fix. Original message: EnumConstantDecl is allocated by the ASTContext allocator so the destructor is never called. This patch takes a similar approach to IntegerLiteral by using APIntStorage to allocate large APSInts using the ASTContext allocator as well. The downside is that an additional heap allocation and copy of the data needs to be made when calling getInitValue if the APSInt is large. Fixes #78160.
Diffstat (limited to 'llvm/lib/CodeGen/BasicBlockSections.cpp')
0 files changed, 0 insertions, 0 deletions