From a19a196785eb7c5fe874c1b141e1b3e6eb0726e5 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 21 Sep 2011 17:46:25 -0300 Subject: [PATCH] m1/perf/main.c: exit immediately on compilation error --- m1/perf/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/m1/perf/main.c b/m1/perf/main.c index 46dff9e..105ddcd 100644 --- a/m1/perf/main.c +++ b/m1/perf/main.c @@ -54,7 +54,8 @@ int main(int argc, char **argv) fclose(file); for (i = 0; i != loops; i++) - patch_compile(buf, report); + if (!patch_compile(buf, report)) + return 1; return 0; }