summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-07-19 23:19:22 +0000
committerJustin Lebar <jlebar@google.com>2016-07-19 23:19:22 +0000
commitea9598b1f4d72d7c87b81bcff30fd3f57f0efd22 (patch)
tree1a08afaacba273aa148c2a0b10795b8612223335 /llvm/lib/Support/CommandLine.cpp
parent8778c626297cc71c1764881979d753ea40af533e (diff)
downloadbcm5719-llvm-ea9598b1f4d72d7c87b81bcff30fd3f57f0efd22.tar.gz
bcm5719-llvm-ea9598b1f4d72d7c87b81bcff30fd3f57f0efd22.zip
Get rid of call to StringRef::substr that's never used.
Summary: substr doesn't modify the string, so this line has no effect. Reviewers: majnemer Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D22540 llvm-svn: 276057
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index a5d2ba2d6a2..05a7db5cfb3 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -505,7 +505,6 @@ static bool CommaSeparateAndAddOccurrence(Option *Handler, unsigned pos,
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(',');
}
OpenPOWER on IntegriCloud