summaryrefslogtreecommitdiff
path: root/6/isel.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-01-02 13:53:38 -0800
committerOri Bernstein <ori@markovcorp.com>2017-01-02 13:53:38 -0800
commit63a36e064a2f9c436a7784d142ef352860948a68 (patch)
tree0e479dc7edee3d81dff5ec8bfaedc7948178dbeb /6/isel.c
parent3f8013774a97396ace94769e216614ca4fde42a0 (diff)
downloadmc-63a36e064a2f9c436a7784d142ef352860948a68.tar.gz
Fix clang warnings.
Apparently enums getting promoted to ints in va_start() is undefined behavior. This is stupid.
Diffstat (limited to '6/isel.c')
-rw-r--r--6/isel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/6/isel.c b/6/isel.c
index 2b04437..cd1be01 100644
--- a/6/isel.c
+++ b/6/isel.c
@@ -169,7 +169,7 @@ static Insn *mkinsnv(AsmOp op, va_list ap)
return i;
}
-Insn *mkinsn(AsmOp op, ...)
+Insn *mkinsn(int op, ...)
{
va_list ap;
Insn *i;
@@ -180,7 +180,7 @@ Insn *mkinsn(AsmOp op, ...)
return i;
}
-static void g(Isel *s, AsmOp op, ...)
+static void g(Isel *s, int op, ...)
{
va_list ap;
Insn *i;