Skip to content

[LV] Assertion `Val && "isa<> used on a null pointer"' failed #148260

@sjoerdmeijer

Description

@sjoerdmeijer

Compile this:

int a;
extern bool b[];
char d, c;
void f() {
  for (int e(d); e; e += 4LL) {
    b[e] = 0;
    a += c;
  }
}

with:

clang++  -Ofast  -mcpu=grace  -c func.cpp

to trigger this assert:

llvm/include/llvm/Support/Casting.h:109: static bool llvm::isa_impl_cl<llvm::VPWidenCastRecipe, const llvm::VPRecipeBase *>::doit(const From *) [To = llvm::VPWidenCastRecipe, From = const llvm::VPRecipeBase *]: Assertion `Val && "isa<> used on a null pointer"' failed.

See also: https://godbolt.org/z/G9nM71bbr

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashPrefer [crash-on-valid] or [crash-on-invalid]vectorizers

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions