diff options
author | Lei Zhang <antiagainst@google.com> | 2021-04-07 14:52:07 -0400 |
---|---|---|
committer | Lei Zhang <antiagainst@google.com> | 2021-04-08 08:19:46 -0400 |
commit | 004f29c0bb3cad623bfd147f73bf6f8ab293ed53 (patch) | |
tree | 5f3c0dc319613ac701f68398be6aee3e7bd0008b /clang/lib/Basic/SourceManager.cpp | |
parent | 94a6fe43de4583038e137f2fcbe634c174af5662 (diff) | |
download | llvm-004f29c0bb3cad623bfd147f73bf6f8ab293ed53.zip llvm-004f29c0bb3cad623bfd147f73bf6f8ab293ed53.tar.gz llvm-004f29c0bb3cad623bfd147f73bf6f8ab293ed53.tar.bz2 |
[mlir][spirv] Timely fail type conversion
Per the TypeConverter API contract, returning `llvm:None` means
other conversion rules should be tried. But we only have one
rule per input type. So there is no need to try others and we can
just directly fail, which should return `nullptr`. This avoids
unnecessary checks.
Differential Revision: https://reviews.llvm.org/D100058
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions