From: Daniel Dunbar Date: Mon, 4 Jan 2010 18:02:28 +0000 (+0000) Subject: Fix -Asserts warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=302c3c23905de41c3720158cca262e8f87e52014;p=clang Fix -Asserts warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92491 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index ab451cf512..cd79fb2b53 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -1211,8 +1211,8 @@ EmitExtVectorElementExpr(const ExtVectorElementExpr *E) { Base = EmitLValue(E->getBase()); } else { // Otherwise, the base is a normal rvalue (as in (V+V).x), emit it as such. - const VectorType *VT = E->getBase()->getType()->getAs(); - assert(VT && "Result must be a vector"); + assert(E->getBase()->getType()->getAs() && + "Result must be a vector"); llvm::Value *Vec = EmitScalarExpr(E->getBase()); // Store the vector to memory (because LValue wants an address).