mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 21:50:40 +00: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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276057 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
85ee7e9487
commit
7d84cf37c7
@ -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(',');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user