Skip to content

Commit

Permalink
Add missing include of llvm-version.h in codegen_shared.h (#43683)
Browse files Browse the repository at this point in the history
Without this, `JL_LLVM_VERSION` is undefined and defaults to 0, so the
branch for older LLVM is always taken.
  • Loading branch information
ararslan authored Jan 6, 2022
1 parent 68e120f commit ba0b7e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/codegen_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#define STR(csym) #csym
#define XSTR(csym) STR(csym)
#include "julia.h"
#include "llvm-version.h"

enum AddressSpace {
Generic = 0,
Expand Down

0 comments on commit ba0b7e9

Please sign in to comment.