File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2424#include < memory>
2525#include < optional>
2626#include < string>
27+ #include < utility>
2728#include < vector>
2829
2930#include " absl/strings/match.h" // from @com_google_absl
@@ -111,8 +112,12 @@ LiteRtStatus QnnManager::LoadLib(absl::string_view path) {
111112}
112113
113114LiteRtStatus QnnManager::LoadSystemLib (absl::string_view path) {
114- LITERT_ASSIGN_OR_RETURN (lib_system_,
115- SharedLibrary::Load (path, RtldFlags::Default ()));
115+ auto lib_system_or = SharedLibrary::Load (path, RtldFlags::Default ());
116+ if (!lib_system_or) {
117+ LITERT_LOG (LITERT_ERROR, " %s" , lib_system_or.Error ().Message ().data ());
118+ return lib_system_or.Error ().Status ();
119+ }
120+ lib_system_ = std::move (lib_system_or.Value ());
116121 return kLiteRtStatusOk ;
117122}
118123
You can’t perform that action at this time.
0 commit comments