[PATCH] D22540: Get rid of call to StringRef::substr that's never used.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 19 16:27:00 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL276057: Get rid of call to StringRef::substr that's never used. (authored by jlebar).

Changed prior to commit:
  https://reviews.llvm.org/D22540?vs=64573&id=64604#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D22540

Files:
  llvm/trunk/lib/Support/CommandLine.cpp

Index: llvm/trunk/lib/Support/CommandLine.cpp
===================================================================
--- llvm/trunk/lib/Support/CommandLine.cpp
+++ llvm/trunk/lib/Support/CommandLine.cpp
@@ -505,7 +505,6 @@
         return true;
       // Erase the portion before the comma, AND the comma.
       Val = Val.substr(Pos + 1);
-      Value.substr(Pos + 1); // Increment the original value pointer as well.
       // Check for another comma.
       Pos = Val.find(',');
     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22540.64604.patch
Type: text/x-patch
Size: 486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160719/b9e7db1b/attachment.bin>


More information about the llvm-commits mailing list