Skip to content

Commit 1dc7b6c

Browse files
committed
fix llvm 3.3 build
1 parent 9f50a2c commit 1dc7b6c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/codegen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4193,7 +4193,7 @@ static std::unique_ptr<Module> emit_function(jl_method_instance_t *lam, jl_code_
41934193
#endif
41944194

41954195
#ifdef USE_POLLY
4196-
if (!jl_has_meta(code, polly_sym) || jl_options.polly == JL_OPTIONS_POLLY_OFF) {
4196+
if (!jl_has_meta(stmts, polly_sym) || jl_options.polly == JL_OPTIONS_POLLY_OFF) {
41974197
f->addFnAttr(polly::PollySkipFnAttr);
41984198
}
41994199
#endif

src/dump.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ static void jl_serialize_module(jl_serializer_state *s, jl_module_t *m)
676676

677677
static int is_ast_node(jl_value_t *v)
678678
{
679+
// TODO: this accidentally copies QuoteNode(Expr(...)) and QuoteNode(svec(...))
679680
return jl_is_symbol(v) || jl_is_slot(v) || jl_is_ssavalue(v) ||
680681
jl_is_expr(v) || jl_is_newvarnode(v) || jl_is_svec(v) || jl_is_tuple(v) ||
681682
jl_is_uniontype(v) || jl_is_int32(v) || jl_is_int64(v) ||

src/llvm-version.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
#include <llvm/Config/llvm-config.h>
44

5+
#ifndef LLVM_VERSION_PATCH // for LLVM 3.3
6+
#define LLVM_VERSION_PATCH 0
7+
#endif
8+
59
// The LLVM version used, JL_LLVM_VERSION, is represented as a 5-digit integer
610
// of the form ABBCC, where A is the major version, B is minor, and C is patch.
711
// So for example, LLVM 3.7.0 is 30700.

0 commit comments

Comments
 (0)