Skip to content

Commit abf7e39

Browse files
committed
Add missing braces in semantic
1 parent eb2da92 commit abf7e39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang/lib/Semantics/check-cuda.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,9 @@ void CUDAChecker::Enter(const parser::AssignmentStmt &x) {
768768
Fortran::evaluate::HasCUDAImplicitTransfer(assign->rhs)) {
769769
if (GetNbOfCUDAManagedOrUnifiedSymbols(assign->lhs) == 1 &&
770770
GetNbOfCUDAManagedOrUnifiedSymbols(assign->rhs) == 1 &&
771-
GetNbOfCUDADeviceSymbols(assign->rhs) == 1)
771+
GetNbOfCUDADeviceSymbols(assign->rhs) == 1) {
772772
return; // This is a special case handled on the host.
773+
}
773774
context_.Say(lhsLoc, "Unsupported CUDA data transfer"_err_en_US);
774775
}
775776
}

0 commit comments

Comments
 (0)