aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorNathan Lanza <nathanlanza@gmail.com>2023-05-10 22:48:43 -0400
committerNathan Lanza <nathanlanza@gmail.com>2023-05-10 22:53:53 -0400
commit220e77a83af19b3f6c47472596fdaaef8e305927 (patch)
tree39d1ea459dcbbe91973fd59937f3a651f3ab792c /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent9a35c0cb452ae403c9a19a7e02f273c62e77304a (diff)
downloadllvm-220e77a83af19b3f6c47472596fdaaef8e305927.zip
llvm-220e77a83af19b3f6c47472596fdaaef8e305927.tar.gz
llvm-220e77a83af19b3f6c47472596fdaaef8e305927.tar.bz2
[clang][CodeGenPGO] Don't use an invalid index when region counts disagree
If we're using an old instrprof profile and the user passes we can get Decls with children decl counts not matching the what the profile was written against. In a particular case I was debugging we have 24 decls in the AST and 22 decls in the profile. Avoid crashing in this case. Differential Revision: https://reviews.llvm.org/D149504
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions