Skip to content

Commit 7ca6ee7

Browse files
committed
review updates
1 parent 635c646 commit 7ca6ee7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,10 @@ class ExegesisAArch64Target : public ExegesisTarget {
200200
PM.add(createAArch64ExpandPseudoPass());
201201
}
202202

203-
static long prctl_wrapper(int op, long arg2 = 0, long arg3 = 0, long arg4 = 0,
204-
long arg5 = 0) {
205-
return prctl(op, arg2, arg3, arg4, arg5);
203+
// Converts variadic arguments to `long` and passes zeros for the unused
204+
// arg2-arg5, as tested by the Linux kernel.
205+
static long prctl_wrapper(int op, long arg2 = 0, long arg3 = 0) {
206+
return prctl(op, arg2, arg3, /*arg4=*/0L, /*arg5=*/0L);
206207
}
207208

208209
const char *getIgnoredOpcodeReasonOrNull(const LLVMState &State,

0 commit comments

Comments
 (0)