diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-12 00:31:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-12 00:31:50 +0000 |
commit | 3304e55f613ce34d9a14c3aaf06f5949408b3092 (patch) | |
tree | 8f0a6430e546177d1e0cc6c05e62d0d8d588e5bd /lib/CodeGen/CGExprConstant.cpp | |
parent | 33d34a6f7a65be1821ab31c7d08b8e9f36d8759c (diff) |
silence release-assert warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<llvm::VectorType>(DstTy) && !isa<VectorType>(SrcType)) { - const llvm::VectorType *VT = cast<llvm::VectorType>(DstTy); - assert((VT->getElementType() == Src->getType()) && + assert((cast<llvm::VectorType>(DstTy)->getElementType() + == Src->getType()) && "Vector element type must match scalar type to splat."); unsigned NumElements = DstType->getAsVectorType()->getNumElements(); llvm::SmallVector<llvm::Constant*, 16> Elements; |