1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/tools/llvm-link
Ella Ma 2a15d1e5e9 [llvm] Add assertions for the smart pointers with the possibility to be null in ModuleLazyLoaderCache::operator()
Split from D91844.

The return value of function `ModuleLazyLoaderCache::operator()` in file llvm/tools/llvm-link/llvm-link.cpp. According to the bug report of my static analyzer, the std::function variable `ModuleLazyLoaderCache::createLazyModule` points to function `loadFile`, which may return `nullptr` when error. And the pointer is dereferenced without a check.

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D97258
2021-03-19 13:52:34 -07:00
..
CMakeLists.txt [llvm-link] use file magic when deciding if input should be loaded as archive 2020-12-02 17:21:34 -08:00
llvm-link.cpp [llvm] Add assertions for the smart pointers with the possibility to be null in ModuleLazyLoaderCache::operator() 2021-03-19 13:52:34 -07:00