diff options
author | Nikita Popov <npopov@redhat.com> | 2024-06-14 11:35:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 11:35:27 +0200 |
commit | 44df1167f88cabbb4cfde816f279337379ea30b3 (patch) | |
tree | ac5d601943f3c63519f6812e276da4aaff7de901 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 4bccd25467ce591869dad41c8b7c550093c20f1b (diff) | |
download | llvm-44df1167f88cabbb4cfde816f279337379ea30b3.zip llvm-44df1167f88cabbb4cfde816f279337379ea30b3.tar.gz llvm-44df1167f88cabbb4cfde816f279337379ea30b3.tar.bz2 |
[Error] Add non-consuming toString (#95375)
There are some places that want to convert an Error to string, but still
retain the original Error object, for example to emit a non-fatal
warning.
This currently isn't possible, because the entire Error infra is
move-based. And what people end up doing in this case is to move the
Error... twice.
This patch introduces a toStringWithoutConsuming() function to
accommodate this use case. This also requires some infrastructure that
allows visiting Errors without consuming them.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions