Incrementing `counter` variable is inside the if statement. If the code does not enter there, the while loop will iterate infinitely. This revision moves the codes outside of if statement. Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D139005
79 KiB
79 KiB