summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xllvm/utils/findmisopt5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/utils/findmisopt b/llvm/utils/findmisopt
index 15d72097fbe..a6033ca88fa 100755
--- a/llvm/utils/findmisopt
+++ b/llvm/utils/findmisopt
@@ -30,6 +30,11 @@
# determined by diffing the program's output with the non-optimized
# output.
#
+if [ "$#" -lt 3 ] ; then
+ echo "usage: findmisopt bcfile outdir progargs [match]"
+ exit 1
+fi
+
bcfile="$1"
outdir="$2"
args="$3"
OpenPOWER on IntegriCloud