1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

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
This commit is contained in:
Justin Lebar 2016-07-19 23:19:22 +00:00
parent 463897252f
commit d76a55add5

View File

@ -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(',');
}