rsmith accepted this revision.
This revision is now accepted and ready to land.

================
Comment at: lib/CodeGen/CGExprScalar.cpp:816-817
@@ +815,4 @@
+    // the same as the vector's element type (sans qualifiers)
+    assert(DstType->castAs<ExtVectorType>()->getElementType().getTypePtr() ==
+               SrcType.getTypePtr() &&
+           "Splatted expr doesn't match with vector element type?");
----------------
The TypePtr can still have qualifiers in it in some cases. Use 
`ASTContext::hasSameType`.


http://reviews.llvm.org/D14877



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to