Skip to content

Commit deab4e9

Browse files
authored
[flang][cuda][NFC] Add missing default values (#117610)
Make it homogenous with other runtime entry points.
1 parent 8e510b8 commit deab4e9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

flang/include/flang/Runtime/CUDA/allocatable.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@ int RTDECL(CUFAllocatableAllocate)(Descriptor &, bool hasStat = false,
2525
/// Perform allocation of the descriptor without synchronization. Assign data
2626
/// from source.
2727
int RTDEF(CUFAllocatableAllocateSource)(Descriptor &alloc,
28-
const Descriptor &source, bool hasStat, const Descriptor *errMsg,
29-
const char *sourceFile, int sourceLine);
28+
const Descriptor &source, bool hasStat = false,
29+
const Descriptor *errMsg = nullptr, const char *sourceFile = nullptr,
30+
int sourceLine = 0);
3031

3132
/// Perform allocation of the descriptor with synchronization of it when
3233
/// necessary. Assign data from source.
3334
int RTDEF(CUFAllocatableAllocateSourceSync)(Descriptor &alloc,
34-
const Descriptor &source, bool hasStat, const Descriptor *errMsg,
35-
const char *sourceFile, int sourceLine);
35+
const Descriptor &source, bool hasStat = false,
36+
const Descriptor *errMsg = nullptr, const char *sourceFile = nullptr,
37+
int sourceLine = 0);
3638

3739
/// Perform deallocation of the descriptor with synchronization of it when
3840
/// necessary.

0 commit comments

Comments
 (0)