deref: fix a crashing bug
[smatch.git] / sparse-llvm-dis
blob2958217b4a9933f04fc7493a45584b524e9615af
1 #!/bin/sh
3 # For testing sparse-llvm emitted bytecode
5 set +e
7 DIS=$("${LLVM_CONFIG:-llvm-config}" --bindir)/llvm-dis
9 if [ $# -eq 0 ]; then
10 echo "$(basename $0): no input files"
11 exit 1
14 DIRNAME=$(dirname $0)
15 $DIRNAME/sparse-llvm "$@" | "$DIS" | grep -v '^target '