diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-01-04 18:02:28 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-01-04 18:02:28 +0000 |
commit | 302c3c23905de41c3720158cca262e8f87e52014 (patch) | |
tree | 60f295ca85c4a2a2e7f0ee3b34fb9b698e37acd5 /lib | |
parent | 95ff742380d1c3dd5152739183bfe085cf27197f (diff) |
Fix -Asserts warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92491 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/CGExpr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<VectorType>(); - assert(VT && "Result must be a vector"); + assert(E->getBase()->getType()->getAs<VectorType>() && + "Result must be a vector"); llvm::Value *Vec = EmitScalarExpr(E->getBase()); // Store the vector to memory (because LValue wants an address). |