[PATCH] D14877: Fix ICE on lowering of constexpr vector splats

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 12 17:08:38 PST 2016

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`.


More information about the cfe-commits mailing list