Fix is/as operators on vector values

This commit is contained in:
Jon Siwek 2018-09-10 14:51:26 -05:00
parent 4bd6da7186
commit 3a824a06ed
4 changed files with 24 additions and 2 deletions

View file

@ -455,7 +455,7 @@ Val* UnaryExpr::Eval(Frame* f) const
if ( ! v )
return 0;
if ( is_vector(v) )
if ( is_vector(v) && Tag() != EXPR_IS && Tag() != EXPR_CAST )
{
VectorVal* v_op = v->AsVectorVal();
VectorType* out_t;