diff options
author | jeremyd2019 <github@jdrake.com> | 2025-05-07 12:39:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-07 22:39:36 +0300 |
commit | 79bc8ad5b73e123cf71bbc6084f2a1bc525eca2b (patch) | |
tree | dd38e8e56f670542efcd442764162231afd65386 /clang/lib/Serialization/ModuleManager.cpp | |
parent | b7db2e1fc0705807fe7f02b790d1a7c998287bda (diff) | |
download | llvm-79bc8ad5b73e123cf71bbc6084f2a1bc525eca2b.zip llvm-79bc8ad5b73e123cf71bbc6084f2a1bc525eca2b.tar.gz llvm-79bc8ad5b73e123cf71bbc6084f2a1bc525eca2b.tar.bz2 |
[LLVM][Support] check for error return from dladdr. (#138369)
In case of an error, the DL_info struct may have been left
uninitialized, so it is not safe to use its members.
In one error case, initialize dli_sname to nullptr explicitly, so that
the later check against nullptr is guaranteed to be safe.
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions