Skip to content

Commit 2dc19f9

Browse files
committed
Fix minor errors
1 parent d8a3e1d commit 2dc19f9

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

llvm/include/llvm/ExecutionEngine/Orc/Shared/AutoLoadDylibUtils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class BloomFilter {
4949
}
5050
// Helper method for hash testing
5151
bool TestHash(uint32_t hash) const {
52-
assert(IsInitialized && "Bloom filter is not initialized!");
52+
assert(Initialized && "Bloom filter is not initialized!");
5353
uint32_t hash2 = hash >> BloomShift;
5454
uint32_t n = (hash >> log2u(Bits)) % BloomSize;
5555
uint64_t mask = ((1ULL << (hash % Bits)) | (1ULL << (hash2 % Bits)));
@@ -58,7 +58,7 @@ class BloomFilter {
5858

5959
// Helper method to add a hash
6060
void AddHash(uint32_t hash) {
61-
assert(IsInitialized && "Bloom filter is not initialized!");
61+
assert(Initialized && "Bloom filter is not initialized!");
6262
uint32_t hash2 = hash >> BloomShift;
6363
uint32_t n = (hash >> log2u(Bits)) % BloomSize;
6464
uint64_t mask = ((1ULL << (hash % Bits)) | (1ULL << (hash2 % Bits)));

llvm/lib/ExecutionEngine/Orc/TargetProcess/AutoLoadDyLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ class DynamicLoader {
491491
: AutoLoadDylibMgr(DLM), ShouldPermanentlyIgnoreCallback(shouldIgnore),
492492
ExecutableFormat(execFormat) {}
493493

494-
~DynamicLoader(){};
494+
~DynamicLoader() {};
495495

496496
std::string searchLibrariesForSymbol(StringRef mangledName,
497497
bool searchSystem);

llvm/lib/ExecutionEngine/Orc/TargetProcess/AutoLoadDylibLookUp.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -169,18 +169,18 @@ bool SplitPaths(StringRef PathStr, SmallVectorImpl<StringRef> &Paths,
169169

170170
AutoLoadDynamicLibraryLookup ::AutoLoadDynamicLibraryLookup() {
171171
const SmallVector<const char *, 10> kSysLibraryEnv = {
172-
"LD_LIBRARY_PATH",
172+
"LD_LIBRARY_PATH",
173173
#if __APPLE__
174-
"DYLD_LIBRARY_PATH",
175-
"DYLD_FALLBACK_LIBRARY_PATH",
176-
/*
177-
"DYLD_VERSIONED_LIBRARY_PATH",
178-
"DYLD_FRAMEWORK_PATH",
179-
"DYLD_FALLBACK_FRAMEWORK_PATH",
180-
"DYLD_VERSIONED_FRAMEWORK_PATH",
181-
*/
174+
"DYLD_LIBRARY_PATH",
175+
"DYLD_FALLBACK_LIBRARY_PATH",
176+
/*
177+
"DYLD_VERSIONED_LIBRARY_PATH",
178+
"DYLD_FRAMEWORK_PATH",
179+
"DYLD_FALLBACK_FRAMEWORK_PATH",
180+
"DYLD_VERSIONED_FRAMEWORK_PATH",
181+
*/
182182
#elif defined(_WIN32)
183-
"PATH",
183+
"PATH",
184184
#endif
185185
};
186186

0 commit comments

Comments
 (0)