diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2021-12-07 17:22:37 -0800 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2021-12-08 15:22:50 -0800 |
commit | cfd1d49dc0cc4369ace2e9485bdba04b27f158b5 (patch) | |
tree | d3cb8e8dea78cdd198d529aad59a0e04557bdaef /llvm/unittests/ADT/StringRefTest.cpp | |
parent | ccf1469a4cdb03cb2bc7868f76164e85d90ebee1 (diff) | |
download | llvm-cfd1d49dc0cc4369ace2e9485bdba04b27f158b5.zip llvm-cfd1d49dc0cc4369ace2e9485bdba04b27f158b5.tar.gz llvm-cfd1d49dc0cc4369ace2e9485bdba04b27f158b5.tar.bz2 |
OpenMP: Avoid using SmallVector::set_size()
Update `OpenMPIRBuilder::collapseLoops()` to call `resize()` instead of
`set_size()`. The latter asserts on capacity limits and cannot grow,
which seems likely to be unintentional here (if it is, I think a local
assertion would be good for clarity).
Also update `CodeGenFunction::EmitOMPCollapsedCanonicalLoopNest()` to
use `pop_back_n()` instead of `set_size()`.
Differential Revision: https://reviews.llvm.org/D115378
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
0 files changed, 0 insertions, 0 deletions