[PATCH] D149504: [clang][CodeGenPGO] Don't use an invalid index when region counts disagree

Shoaib Meenai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 8 15:25:31 PDT 2023


smeenai accepted this revision.
smeenai added a comment.
This revision is now accepted and ready to land.

Seems pretty reasonable to add a bounds check here. You should probably add a comment explaining the reasoning though.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149504/new/

https://reviews.llvm.org/D149504



More information about the cfe-commits mailing list