[SimplifyLibCalls] Use range-based loop. NFC.