File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -263,10 +263,10 @@ void CodeGen_PTX_Dev::visit(const Call *op) {
263263 internal_assert (fence_type_ptr) << " gpu_thread_barrier() parameter is not a constant integer.\n " ;
264264
265265 llvm::Function *barrier;
266- if (barrier = module ->getFunction (" llvm.nvvm.barrier.cta.sync.aligned.all" )) {
266+ if (( barrier = module ->getFunction (" llvm.nvvm.barrier.cta.sync.aligned.all" ) )) {
267267 // LLVM 20 and above: https://github.com/llvm/llvm-project/pull/140615
268268 builder->CreateCall (barrier, builder->getInt32 (0 ));
269- } else if (barrier = module ->getFunction (" llvm.nvvm.barrier0" )) {
269+ } else if (( barrier = module ->getFunction (" llvm.nvvm.barrier0" ) )) {
270270 // LLVM 19: Testing for llvm.nvvm.barrier0 can be removed once we drop support for LLVM 19
271271 builder->CreateCall (barrier);
272272 } else {
You can’t perform that action at this time.
0 commit comments