Update to match LLVM r300135.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Apr 2017 23:21:25 +0000 (23:21 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Apr 2017 23:21:25 +0000 (23:21 +0000)
Remove "REQUIRES: long_tests" from test/Driver/response-file.c since it is now about 10x faster. (We can add that back if it's still too slow for some buildbot.)

llvm-svn: 300136

clang/lib/Driver/ToolChains/Darwin.cpp
clang/test/Driver/response-file.c

index 6952f455167200bd0ec6f821453ef7111598ff99..009a12da3015a2eabbf98e6a9c04da0a556db0c2 100644 (file)
@@ -1684,7 +1684,8 @@ Darwin::TranslateArgs(const DerivedArgList &Args, StringRef BoundArch,
       A = *it;
       assert(A->getOption().getID() == options::OPT_static &&
              "missing expected -static argument");
-      it = DAL->getArgs().erase(it);
+      *it = nullptr;
+      ++it;
     }
   }
 
index bd336309adf8e611271a2699cdaeb410fd907d64..0818f3fe2bc1934919c7c0e981d8f558605d7be0 100644 (file)
@@ -1,5 +1,3 @@
-// REQUIRES: long_tests
-
 // Check that clang is able to process short response files
 // Since this is a short response file, clang must not use a response file
 // to pass its parameters to other tools. This is only necessary for a large