Skip to content

Assert fail on SIMD vector types #284

Closed
@john-h-kastner

Description

@john-h-kastner

An assertion fails when processing expressions with vector types such as those in this header file.

#include <tmmintrin.h>
cconv-standalone: /home/cc/checkedc-clang/clang/lib/CConv/ConstraintResolver.cpp:570: CVarSet ConstraintResolver::getExprConstraintVars(clang::Expr*): Assertion `"InitlistExpr of type other than array or pointer in " "getExprConstraintVars" && ILE->getType()->isPointerType()' failed.

Reduced test case obtained from the header:

__attribute__((__vector_size__(2 * sizeof(long)))) int a() {
  return (__attribute__((__vector_size__(2 * sizeof(long))))int){};
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions