[all-commits] [llvm/llvm-project] b7448a: [Attributor][NFC] Use indexes instead of iterator

hellobbn via All-commits all-commits at lists.llvm.org
Sat Aug 15 08:12:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b7448a348bb863365b3d4652010a29efedd8f2e7
      https://github.com/llvm/llvm-project/commit/b7448a348bb863365b3d4652010a29efedd8f2e7
  Author: Luofan Chen <clfbbn at gmail.com>
  Date:   2020-08-15 (Sat, 15 Aug 2020)

  Changed paths:
    M llvm/lib/Transforms/IPO/Attributor.cpp

  Log Message:
  -----------
  [Attributor][NFC] Use indexes instead of iterator

When adding elements when iterating, the iterator will become
valid, which could cause errors. This fixes the issue by using
indexes instead of iterator.




More information about the All-commits mailing list