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 | 675906eeb54dd2aa8a7cb3b326da07158c931758 (patch) | |
| tree | 942c6f416c4a54c56743de66c906c46be99adba3 /lib/Tooling/CompilationDatabase.cpp | |
| parent | c8f03423e23d4e093d8149fd924e6fef26a15e94 (diff) | |
| download | clang-675906eeb54dd2aa8a7cb3b326da07158c931758.tar.gz clang-675906eeb54dd2aa8a7cb3b326da07158c931758.tar.bz2 clang-675906eeb54dd2aa8a7cb3b326da07158c931758.tar.xz | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Tooling/CompilationDatabase.cpp')
| -rw-r--r-- | lib/Tooling/CompilationDatabase.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Tooling/CompilationDatabase.cpp b/lib/Tooling/CompilationDatabase.cpp index 37e0027246..52452e7c6e 100644 --- a/lib/Tooling/CompilationDatabase.cpp +++ b/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); |
