summaryrefslogtreecommitdiffstats
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 9b6f0f85fc9..01da5836e46 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -805,7 +805,10 @@ gen_rtvec (int n, ...)
/* Don't allocate an empty rtvec... */
if (n == 0)
- return NULL_RTVEC;
+ {
+ va_end (p);
+ return NULL_RTVEC;
+ }
rt_val = rtvec_alloc (n);
OpenPOWER on IntegriCloud