mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
[DebugInfo] Fix error from D95893, where I accidentally used an
unsigned int in a loop and it wraps around. Follow up to https://reviews.llvm.org/D95893
This commit is contained in:
parent
72039186bb
commit
d34ab4ff2d
@ -365,7 +365,7 @@ static StringRef removeTemplateArgs(StringRef Name) {
|
||||
return Name;
|
||||
|
||||
int OpenBrackets = 0;
|
||||
for (size_t i = Name.size() - 1; i >= 0; --i) {
|
||||
for (int i = Name.size() - 1; i >= 0; --i) {
|
||||
if (Name[i] == '>')
|
||||
++OpenBrackets;
|
||||
else if (Name[i] == '<') {
|
||||
|
Loading…
Reference in New Issue
Block a user