aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-03-27 23:04:00 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-11-17 10:04:37 +0100
commita410611d7af9d20ebd6c9e422fad5ac8c3b4236e (patch)
tree2d143f0c1b59f2cf43e24f3f5a2d8185fef70899
parent44054dd8ad89e1d818de8aa2db55414c741cfa11 (diff)
downloadsparse-dev-a410611d7af9d20ebd6c9e422fad5ac8c3b4236e.tar.gz
llvm: fix creation of sparsec's tmp files
It seems the intention was to create the tmp files with the suffixes but the files are create without the suffixes (while the filename that is used later is with the suffixes). In all case the non-suffixed file that is created by the mktemp command is never removed and after a while these files begin to pile-up. Better to remove them. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rwxr-xr-xsparsec4
1 files changed, 2 insertions, 2 deletions
diff --git a/sparsec b/sparsec
index 9dc96c95..e421776e 100755
--- a/sparsec
+++ b/sparsec
@@ -29,8 +29,8 @@ while [ $# -gt 0 ]; do
shift
done
-TMPLLVM=`mktemp -t tmp.XXXXXX`".llvm"
-TMPFILE=`mktemp -t tmp.XXXXXX`".o"
+TMPLLVM=`mktemp -t tmp.XXXXXX.llvm`
+TMPFILE=`mktemp -t tmp.XXXXXX.o`
$DIRNAME/sparse-llvm $SPARSEOPTS > $TMPLLVM