зеркало из https://github.com/microsoft/clang.git
Fix -Asserts warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92491 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
95ff742380
Коммит
302c3c2390
|
@ -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).
|
||||
|
|
Загрузка…
Ссылка в новой задаче