Skip to content

Commit 9cbe9bd

Browse files
clementvaljeanPerier
authored andcommitted
[openacc] fix if condition position in acc.update op lowering
1 parent 77b605c commit 9cbe9bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Lower/OpenACC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,11 +891,11 @@ genACCUpdateOp(Fortran::lower::AbstractConverter &converter,
891891
// Prepare the operand segement size attribute and the operands value range.
892892
SmallVector<mlir::Value, 14> operands;
893893
SmallVector<int32_t, 7> operandSegments;
894+
addOperand(operands, operandSegments, ifCond);
894895
addOperand(operands, operandSegments, async);
895896
addOperand(operands, operandSegments, waitDevnum);
896897
addOperands(operands, operandSegments, waitOperands);
897898
addOperands(operands, operandSegments, deviceTypeOperands);
898-
addOperand(operands, operandSegments, ifCond);
899899
addOperands(operands, operandSegments, hostOperands);
900900
addOperands(operands, operandSegments, deviceOperands);
901901

0 commit comments

Comments
 (0)