summaryrefslogtreecommitdiff
path: root/backend/src/llvm/llvm_to_gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/llvm/llvm_to_gen.cpp')
-rw-r--r--backend/src/llvm/llvm_to_gen.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/src/llvm/llvm_to_gen.cpp b/backend/src/llvm/llvm_to_gen.cpp
index a889c56a..b58dfb72 100644
--- a/backend/src/llvm/llvm_to_gen.cpp
+++ b/backend/src/llvm/llvm_to_gen.cpp
@@ -321,8 +321,9 @@ namespace gbe
std::unique_ptr<Module> M;
- /* Before do any thing, we first filter in all CL functions in bitcode. */
- M.reset(runBitCodeLinker(cl_mod, strictMath));
+ /* Before do any thing, we first filter in all CL functions in bitcode. */
+ /* Also set unit's pointer size in runBitCodeLinker */
+ M.reset(runBitCodeLinker(cl_mod, strictMath, unit));
if (!module)
delete cl_mod;
if (M.get() == 0)