Issue 148260
Summary [LV] Assertion `Val && "isa<> used on a null pointer"' failed
Labels new issue
Assignees
Reporter 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
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to