From 3304e55f613ce34d9a14c3aaf06f5949408b3092 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 12 Oct 2008 00:31:50 +0000 Subject: silence release-assert warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57392 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprConstant.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CGExprConstant.cpp') diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 69abbcc984..783bb1c67a 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -695,8 +695,8 @@ public: // A scalar source can be splatted to a vector of the same element type if (isa(DstTy) && !isa(SrcType)) { - const llvm::VectorType *VT = cast(DstTy); - assert((VT->getElementType() == Src->getType()) && + assert((cast(DstTy)->getElementType() + == Src->getType()) && "Vector element type must match scalar type to splat."); unsigned NumElements = DstType->getAsVectorType()->getNumElements(); llvm::SmallVector Elements; -- cgit v1.2.3