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 | 5b9019515a371758801e40b7fbba547c6ea135cc (patch) | |
tree | 743e05897b0b4b9ced28d851779815b1301bccb8 /clang/lib/CodeGen/CGExpr.cpp | |
parent | 96b90539d6a97cd27b6483acaf743b24bb08ed1a (diff) | |
download | bcm5719-llvm-5b9019515a371758801e40b7fbba547c6ea135cc.tar.gz bcm5719-llvm-5b9019515a371758801e40b7fbba547c6ea135cc.zip |
Fix -Asserts warning.
llvm-svn: 92491
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExpr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index ab451cf512e..cd79fb2b538 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/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). |