aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Object/BuildIDTest.cpp
diff options
context:
space:
mode:
authorJakub Kuderski <jakub@nod-labs.com>2025-10-04 16:51:43 -0400
committerGitHub <noreply@github.com>2025-10-04 16:51:43 -0400
commit85c7cea8aca5bc58a9bc52f79433569d3cf87ca9 (patch)
treefe5168ce93b0da35a05c7fa0e4f499c03ed6334d /llvm/unittests/Object/BuildIDTest.cpp
parent8a8a589f24e9520db28180b6651b632799513cb5 (diff)
downloadllvm-85c7cea8aca5bc58a9bc52f79433569d3cf87ca9.zip
llvm-85c7cea8aca5bc58a9bc52f79433569d3cf87ca9.tar.gz
llvm-85c7cea8aca5bc58a9bc52f79433569d3cf87ca9.tar.bz2
[ADT] Add `DefaultUnreachable("msg")` to TypeSwitch (#161970)
This is to allow making it explicit that all the cases must be handled. The error message is customizable. Something similar was already supported using the conversion operator for the typed case but less explicit. In the `void` case when `TypeSwitch` doesn't return anything, this was not possible without a custom lambda.
Diffstat (limited to 'llvm/unittests/Object/BuildIDTest.cpp')
0 files changed, 0 insertions, 0 deletions