[Lldb-commits] [lldb] [lldb] Adjust the for loop condition to prevent unintended increments in ExpandRLE (NFC) (PR #94844)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 20 11:38:34 PDT 2024
================
@@ -1316,6 +1316,7 @@ std::string GDBRemoteCommunication::ExpandRLE(std::string packet) {
} else {
decoded.push_back(*c);
}
+ c++;
----------------
bulbazord wrote:
Having the `c++` here is equivalent to having it in the "increment" portion of the for loop construct, why move it here?
https://github.com/llvm/llvm-project/pull/94844
More information about the lldb-commits
mailing list