[PATCH] D103163: [Matrix] Skip matrix casts checks for class or struct types in C++.

Florian Hahn via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 27 12:44:02 PDT 2021


fhahn updated this revision to Diff 348360.
fhahn added a comment.

I discussed the problem offline with John and he suggested to handle matrix casts in TryStaticCast. This allows us the handle both static_cast and C-style casts with the same code. As a consequence, the default error messages for casting a matrix type to a non-matrix type and vice versa are used.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103163/new/

https://reviews.llvm.org/D103163

Files:
  clang/lib/Sema/SemaCast.cpp
  clang/test/CodeGenCXX/matrix-casts.cpp
  clang/test/SemaCXX/matrix-casts.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103163.348360.patch
Type: text/x-patch
Size: 12283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210527/236eda52/attachment.bin>


More information about the cfe-commits mailing list