Fix bugs found with recent addition of assertions in
[oota-llvm.git] / utils / check-each-file
index 667698deb83dcbfbce70b1e40b2a31ca1a525f79..1f6a8aa065a9c1385c584854f854810ccda09f1f 100755 (executable)
@@ -55,7 +55,7 @@ usage () {
        echo ""
        echo "OBJECTS-FILE is a text file containing the names of all the .o files"
        echo "PROGRAM is the name of the executable under test"
-       echo "(there must also exist a Makefile in the current directory which
+       echo "(there must also exist a Makefile in the current directory which"
        echo "has PROGRAM as a target)"
        echo "LINKER is the script that builds PROGRAM; try --make-linker-script" 
        echo "to automatically generate it"
@@ -115,6 +115,8 @@ for f in $files
 do
        rm -f $f && gmake $f CC=llvm-native-gcc
 done
+rm -f $program
+$linker
 if $checker
 then
        echo "Sorry, I can't help you, $program is OK when compiled with llvm-native-gcc"