diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2021-05-27 14:15:11 -0400 |
---|---|---|
committer | Louis Dionne <ldionne.2@gmail.com> | 2021-06-14 08:13:14 -0400 |
commit | 8e93aa304b3fbe57bb7d22f63681f1b9758e63a9 (patch) | |
tree | e62309ead982701b19ce5f792ecf4bbaa4f30afc /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | ac031c8db2ce454a9b08f23192ce698e8bde4447 (diff) | |
download | llvm-8e93aa304b3fbe57bb7d22f63681f1b9758e63a9.zip llvm-8e93aa304b3fbe57bb7d22f63681f1b9758e63a9.tar.gz llvm-8e93aa304b3fbe57bb7d22f63681f1b9758e63a9.tar.bz2 |
[libc++] Refactor the tests for std::prev, next and advance
This started as an attempt to fix a GCC 11 warning of misplaced parentheses.
I then noticed that trying to fix the parentheses warning actually triggered
errors in the tests, showing that we were incorrectly assuming that the
implementation of ranges::advance was using operator+= or operator-=.
This commit fixes that issue and makes the tests easier to follow by
localizing the assertions it makes.
Differential Revision: https://reviews.llvm.org/D103272
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions