1
0
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:
Amy Huang 2021-02-05 10:23:46 -08:00
parent 72039186bb
commit d34ab4ff2d

View File

@ -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] == '<') {