-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix syntax error introduced by f027462
- Loading branch information
1 parent
fdf91ab
commit 937ca4d
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -405,7 +405,7 @@ void jl_getDylibFunctionInfo(const char **name, size_t *line, const char **filen | |
if ((dladdr((void*)pointer, &dlinfo) != 0) && dlinfo.dli_fname) { | ||
const char *fname; | ||
uint64_t fbase = (uint64_t)dlinfo.dli_fbase; | ||
size_t msize = (size_t)(((uint64_t)-1)-fbase)); | ||
size_t msize = (size_t)(((uint64_t)-1)-fbase); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
timholy
Member
|
||
*fromC = (fbase != jl_sysimage_base); | ||
if (skipC && *fromC) | ||
return; | ||
|
@@ -432,13 +432,13 @@ void jl_getDylibFunctionInfo(const char **name, size_t *line, const char **filen | |
membuf->getMemBufferRef(), sys::fs::file_magic::unknown); | ||
#elif defined(LLVM35) | ||
MemoryBuffer *membuf = MemoryBuffer::getMemBuffer( | ||
StringRef((const char *)fbase, msize), "", false); | ||
StringRef((const char *)fbase, msize)), "", false); | ||
std::unique_ptr<MemoryBuffer> buf(membuf); | ||
auto origerrorobj = llvm::object::ObjectFile::createObjectFile( | ||
buf, sys::fs::file_magic::unknown); | ||
#else | ||
MemoryBuffer *membuf = MemoryBuffer::getMemBuffer( | ||
StringRef((const char *)fbase, msize, "", false); | ||
StringRef((const char *)fbase, msize), "", false); | ||
llvm::object::ObjectFile *origerrorobj = llvm::object::ObjectFile::createObjectFile( | ||
membuf); | ||
#endif | ||
|
@staticfloat, I'm now getting this: