[CUDA] Fix createTargetMachine() for LLVM 3.9
@@ -126,7 +126,11 @@ int pocl_ptx_gen(const char *bc_filename,
// TODO: CPU and features?
std::unique_ptr<llvm::TargetMachine> machine(
+#ifdef LLVM_OLDER_THAN_3_9
target->createTargetMachine(triple, gpu_arch, "", options));
+#else
+ target->createTargetMachine(triple, gpu_arch, "", options, llvm::None));
+#endif
llvm::legacy::PassManager passes;
