r197309 - CompilationDatabase.cpp:stripPositionalArgs(): Match not "no-integrated-as" but "-no-integrated-as", it really fixes r197229.

NAKAMURA Takumi geek4civic at gmail.com
Fri Dec 13 22:03:28 PST 2013


Author: chapuni
Date: Sat Dec 14 00:03:28 2013
New Revision: 197309

URL: http://llvm.org/viewvc/llvm-project?rev=197309&view=rev
Log:
CompilationDatabase.cpp:stripPositionalArgs(): Match not "no-integrated-as" but "-no-integrated-as", it really fixes r197229.

Modified:
    cfe/trunk/lib/Tooling/CompilationDatabase.cpp

Modified: cfe/trunk/lib/Tooling/CompilationDatabase.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/CompilationDatabase.cpp?rev=197309&r1=197308&r2=197309&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/CompilationDatabase.cpp (original)
+++ cfe/trunk/lib/Tooling/CompilationDatabase.cpp Sat Dec 14 00:03:28 2013
@@ -239,7 +239,8 @@ static bool stripPositionalArgs(std::vec
 
   // Remove -no-integrated-as; it's not used for syntax checking,
   // and it confuses targets which don't support this option.
-  std::remove_if(Args.begin(), Args.end(), MatchesAny(std::string("no-integrated-as")));
+  std::remove_if(Args.begin(), Args.end(),
+                 MatchesAny(std::string("-no-integrated-as")));
 
   const OwningPtr<driver::Compilation> Compilation(
       NewDriver->BuildCompilation(Args));





More information about the cfe-commits mailing list