From: NAKAMURA Takumi Date: Sat, 14 Dec 2013 06:03:28 +0000 (+0000) Subject: CompilationDatabase.cpp:stripPositionalArgs(): Match not "no-integrated-as" but ... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f7aeb36a073842b8a923e3d528c66f665499568;p=clang CompilationDatabase.cpp:stripPositionalArgs(): Match not "no-integrated-as" but "-no-integrated-as", it really fixes r197229. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197309 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Tooling/CompilationDatabase.cpp b/lib/Tooling/CompilationDatabase.cpp index 7bbae12dbf..6214420018 100644 --- a/lib/Tooling/CompilationDatabase.cpp +++ b/lib/Tooling/CompilationDatabase.cpp @@ -239,7 +239,8 @@ static bool stripPositionalArgs(std::vector Args, // 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 Compilation( NewDriver->BuildCompilation(Args));