diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2021-11-15 17:15:41 -0800 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2021-11-16 10:21:04 -0800 |
commit | a0f1f171314f99351d47d033b13a5aea6c5ee84e (patch) | |
tree | 341c573abdcb25ad33fcc9c1eb01c81b2269d2c8 /llvm/lib/Support/APInt.cpp | |
parent | 5ed404a4abd3fc3559ecc9dfc6cee83fcc3796e6 (diff) | |
download | llvm-a0f1f171314f99351d47d033b13a5aea6c5ee84e.zip llvm-a0f1f171314f99351d47d033b13a5aea6c5ee84e.tar.gz llvm-a0f1f171314f99351d47d033b13a5aea6c5ee84e.tar.bz2 |
DebugInfo: Stop modifying Operation::Error inside of verify()
The only caller of Operation::verify() is DWARFExpression::verify(),
which iterates past the (ephemeral) Operation immediately after.
- Stop setting Operation::Error because the mutation will never be
observed.
- Change verify() to a static function to be sure all callers are
updated.
Differential Revision: https://reviews.llvm.org/D113957
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
0 files changed, 0 insertions, 0 deletions