Skip to content

Commit 9499444

Browse files
committed
Please the compiler.
1 parent c84e8d3 commit 9499444

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CodeGen_PTX_Dev.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)