From 8f7aeb36a073842b8a923e3d528c66f665499568 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sat, 14 Dec 2013 06:03:28 +0000 Subject: [PATCH] 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 --- lib/Tooling/CompilationDatabase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.40.0