diff options
author | Pedro Tammela <pctammela@gmail.com> | 2020-11-01 18:02:30 +0000 |
---|---|---|
committer | Pedro Tammela <pctammela@gmail.com> | 2020-11-02 16:52:30 +0000 |
commit | 4d7d6f276c6df9e0a4cc3d9fccfaf84face62311 (patch) | |
tree | 6c4c795ca51ce421e1282906b8d81938cda4066f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | a1aaa9ef783a82fd3df0de00a5f4edf19b2234a8 (diff) | |
download | llvm-4d7d6f276c6df9e0a4cc3d9fccfaf84face62311.zip llvm-4d7d6f276c6df9e0a4cc3d9fccfaf84face62311.tar.gz llvm-4d7d6f276c6df9e0a4cc3d9fccfaf84face62311.tar.bz2 |
[LLDB/Lua] call lua_close() on Lua dtor
This patch calls `lua_close()` on Lua dtor.
This guarantees that the Lua GC finalizers are honored, aside from the
usual internal clean up.
It also guarantees a call to the `__close` metamethod of any active
to-be-closed variable in Lua 5.4.
Since the previous `luaL_openlibs()` was a noop, because the standard
library is cached internally, I've removed it.
Differential Revision: https://reviews.llvm.org/D90557
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions