We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0dbbd9 commit 5cdf936Copy full SHA for 5cdf936
llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
@@ -247,12 +247,11 @@ static int Error(const Twine &Msg) {
247
248
static void loadDylibs() {
249
for (const std::string &Dylib : Dylibs) {
250
- if (sys::fs::is_regular_file(Dylib)) {
251
- std::string ErrMsg;
252
- if (sys::DynamicLibrary::LoadLibraryPermanently(Dylib.c_str(), &ErrMsg))
253
- report_fatal_error("Error loading '" + Dylib + "': " + ErrMsg);
254
- } else
+ if (!sys::fs::is_regular_file(Dylib))
255
report_fatal_error("Dylib not found: '" + Dylib + "'.");
+ std::string ErrMsg;
+ if (sys::DynamicLibrary::LoadLibraryPermanently(Dylib.c_str(), &ErrMsg))
+ report_fatal_error("Error loading '" + Dylib + "': " + ErrMsg);
256
}
257
258
0 commit comments