diff options
author | Alp Toker <alp@nuanti.com> | 2013-11-17 16:49:24 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2013-11-17 16:49:24 +0000 |
commit | b90f560303bdec86ce707faec8154212a4134cd8 (patch) | |
tree | 1486beaf11c27c86dacca7ad20f4748be4e3f32c /clang/lib/Tooling/CompilationDatabase.cpp | |
parent | eb56f4fe2f5a997d0f93786e7a3dba6671036ad8 (diff) | |
download | bcm5719-llvm-b90f560303bdec86ce707faec8154212a4134cd8.tar.gz bcm5719-llvm-b90f560303bdec86ce707faec8154212a4134cd8.zip |
Remove a bad string compare from r194968
lib/Tooling/CompilationDatabase.cpp:275:34: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
This assert() should probably be fixed and added back at some point.
llvm-svn: 194969
Diffstat (limited to 'clang/lib/Tooling/CompilationDatabase.cpp')
-rw-r--r-- | clang/lib/Tooling/CompilationDatabase.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Tooling/CompilationDatabase.cpp b/clang/lib/Tooling/CompilationDatabase.cpp index 37e0027246a..52452e7c6ea 100644 --- a/clang/lib/Tooling/CompilationDatabase.cpp +++ b/clang/lib/Tooling/CompilationDatabase.cpp @@ -272,7 +272,6 @@ bool stripPositionalArgs(std::vector<const char *> Args, End = std::remove_if(Args.begin(), End, MatchesAny(DiagClient.UnusedInputs)); // Remove the -c add above as well. It will be at the end right now. - assert(*(End - 1) == "-c"); --End; Result = std::vector<std::string>(Args.begin() + 1, End); |