================
@@ -2379,9 +2379,12 @@ mlir::Value ScalarExprEmitter::VisitCastExpr(CastExpr 
*ce) {
   case CK_VectorSplat: {
     // Create a vector object and fill all elements with the same scalar value.
     assert(destTy->isVectorType() && "CK_VectorSplat to non-vector type");
+    mlir::Value scalar = Visit(subExpr);
+    if (!scalar)
----------------
erichkeane wrote:

THIS is something that should never happen, right?  It only does because we're 
not yet implemented.  IMO, we shouldn't introduce a branch that should go away 
later.

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

Reply via email to