================
@@ -987,6 +988,12 @@ void CastOperation::CheckDynamicCast() {
     return;
   }
 
+  // Similarly, dynamic_cast is not available in CUDA device code, except for
+  // dynamic_cast to void*.
+  if (Self.getLangOpts().CUDA && !DestPointee->isVoidType())
----------------
steffenlarsen wrote:

Sounds like we are in agreement. 
clang/test/CodeGenCUDA/device-dynamic-cast-void.cu should test the void* 
dynamic cast.

https://github.com/llvm/llvm-project/pull/228469
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to