[llvm] r333334 - [llvm-symbolizer] Simplify
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri May 25 19:29:14 PDT 2018
Author: maskray
Date: Fri May 25 19:29:14 2018
New Revision: 333334
URL: http://llvm.org/viewvc/llvm-project?rev=333334&view=rev
Log:
[llvm-symbolizer] Simplify
Modified:
llvm/trunk/tools/llvm-symbolizer/llvm-symbolizer.cpp
Modified: llvm/trunk/tools/llvm-symbolizer/llvm-symbolizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-symbolizer/llvm-symbolizer.cpp?rev=333334&r1=333333&r2=333334&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-symbolizer/llvm-symbolizer.cpp (original)
+++ llvm/trunk/tools/llvm-symbolizer/llvm-symbolizer.cpp Fri May 25 19:29:14 2018
@@ -113,7 +113,7 @@ static bool parseCommand(StringRef Input
}
const char *pos = InputString.data();
// Skip delimiters and parse input filename (if needed).
- if (ClBinaryName == "") {
+ if (ClBinaryName.empty()) {
pos += strspn(pos, kDelimiters);
if (*pos == '"' || *pos == '\'') {
char quote = *pos;
More information about the llvm-commits
mailing list