Skip to content

Commit

Permalink
Fix compilation on LLVM 4.0+
Browse files Browse the repository at this point in the history
Introduced by 6674011
Similar to 23e5e91
  • Loading branch information
yuyichao committed Jun 20, 2017
1 parent 401b724 commit 236e486
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@
#include <llvm/Support/SourceMgr.h> // for llvmcall
#include <llvm/Transforms/Utils/Cloning.h> // for llvmcall inlining
#include <llvm/IR/Verifier.h> // for llvmcall validation
#include <llvm/Bitcode/ReaderWriter.h>
#if JL_LLVM_VERSION >= 40000
# include <llvm/Bitcode/BitcodeWriter.h>
#else
# include <llvm/Bitcode/ReaderWriter.h>
#endif

// C API
#include <llvm-c/Types.h>
Expand Down

2 comments on commit 236e486

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily benchmark build, I will reply here when finished:

@nanosoldier runbenchmarks(ALL, isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels

Please sign in to comment.