Skip to content

Commit 580cd10

Browse files
committed
Fixed minor issue
1 parent b12d8f9 commit 580cd10

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

taichi/llvm/llvm_program.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ class LlvmProgramImpl : public ProgramImpl {
167167
}
168168

169169
template <typename T, typename... Args>
170-
T runtime_query(const std::string &key, uint64 *result_buffer, Args... args) {
170+
T runtime_query(const std::string &key,
171+
uint64 *result_buffer,
172+
Args &&...args) {
171173
return runtime_exec_->runtime_query<T>(key, result_buffer,
172174
std::forward<Args>(args)...);
173175
}

taichi/llvm/llvm_runtime_executor.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ class LlvmRuntimeExecutor {
9393
}
9494

9595
auto runtime = tlctx->runtime_jit_module;
96-
runtime->call<void *, Args...>("runtime_" + key, llvm_runtime_,
97-
std::forward<Args>(args)...);
96+
runtime->call<void *>("runtime_" + key, llvm_runtime_,
97+
std::forward<Args>(args)...);
9898
return taichi_union_cast_with_different_sizes<T>(fetch_result_uint64(
9999
taichi_result_buffer_runtime_query_id, result_buffer));
100100
}

0 commit comments

Comments
 (0)