From: Richard Smith Date: Wed, 12 Apr 2017 23:21:25 +0000 (+0000) Subject: Update to match LLVM r300135. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4bf2bab1db23455713bd39a7a5724a4b848989d;p=clang Update to match LLVM r300135. 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.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300136 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains/Darwin.cpp b/lib/Driver/ToolChains/Darwin.cpp index 6952f45516..009a12da30 100644 --- a/lib/Driver/ToolChains/Darwin.cpp +++ b/lib/Driver/ToolChains/Darwin.cpp @@ -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; } } diff --git a/test/Driver/response-file.c b/test/Driver/response-file.c index bd336309ad..0818f3fe2b 100644 --- a/test/Driver/response-file.c +++ b/test/Driver/response-file.c @@ -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