Skip to content

Commit

Permalink
Fix build againstly llvm36 on win64
Browse files Browse the repository at this point in the history
Note that errorobj on Windows uses an existing MemoryBuffer,
so createObjectFile does not return OwningBinary.
  • Loading branch information
ihnorton committed Dec 21, 2014
1 parent d6514f4 commit 1f4ea2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/debuginfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,9 @@ void jl_getDylibFunctionInfo(const char **name, size_t *line, const char **filen
#endif
#endif // ifdef _OS_DARWIN_
if (errorobj) {
#if LLVM36
#if LLVM36 && defined(_OS_WINDOWS_)
obj = errorobj.get().release();
#elif LLVM36
auto binary = errorobj.get().takeBinary();
obj = binary.first.release();
binary.second.release();
Expand Down

0 comments on commit 1f4ea2b

Please sign in to comment.