Skip to content

Commit b53784a

Browse files
committed
[CIR][CIRGen] Fix swapped parameters in test
Clang recognizes the function anyway, but this is an obvious error.
1 parent f9c5477 commit b53784a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/CIR/CodeGen/libc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// Should generate CIR's builtin memcpy op.
1212
void *memcpy(void *, const void *, unsigned long);
13-
void testMemcpy(void *src, const void *dst, unsigned long size) {
13+
void testMemcpy(void *dst, const void *src, unsigned long size) {
1414
memcpy(dst, src, size);
1515
// CHECK: cir.libc.memcpy %{{.+}} bytes from %{{.+}} to %{{.+}} : !u64i, !cir.ptr<!void> -> !cir.ptr<!void>
1616
}

0 commit comments

Comments
 (0)