Skip to content

Instantly share code, notes, and snippets.

/-

Created October 17, 2015 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/6c318f37be5a77b42ca7 to your computer and use it in GitHub Desktop.
Save anonymous/6c318f37be5a77b42ca7 to your computer and use it in GitHub Desktop.
diff --git a/src/intrinsics.cpp b/src/intrinsics.cpp
index 29f8567..ce923a3 100644
--- a/src/intrinsics.cpp
+++ b/src/intrinsics.cpp
@@ -913,7 +913,7 @@ static jl_cgval_t emit_intrinsic(intrinsic f, jl_value_t **args, size_t nargs,
f = fptosi_auto;
unsigned expected_nargs = intrinsic_nargs[f];
if (expected_nargs && expected_nargs != nargs) {
- jl_errorf("intrinsic #%d %s: wrong number of arguments", f, jl_intrinsic_name((int)f));
+ jl_errorf("intrinsic #%d %s: wrong number of arguments", f, JL_I::jl_intrinsic_name((int)f));
}
switch (f) {
diff --git a/src/runtime_ccall.cpp b/src/runtime_ccall.cpp
index 81e4316..eb7b9de 100644
--- a/src/runtime_ccall.cpp
+++ b/src/runtime_ccall.cpp
@@ -3,6 +3,7 @@
#include <map>
#include <string>
#include <cstdio>
+#include <llvm/Support/Host.h>
#include "julia.h"
#include "julia_internal.h"
@@ -128,7 +129,6 @@ void *jl_load_and_lookup(char *f_lib, char *f_name, uv_lib_t **hnd)
}
// miscellany
-#include <llvm/Support/Host.h>
extern "C" DLLEXPORT
jl_value_t *jl_get_cpu_name(void)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment