Issue 184879
Summary Crash in TableGen parser
Labels new issue
Assignees
Reporter jurahul
    For the following input file:

```
class X {
  int F = 0;
  int D = !add(F, 1);
}

class Y : X  {
  string F = "0";
}
```

tablegen hits an isa<> assert during parsing:

```
test.td:7:14: error: Field 'F' of type 'int' is incompatible with value '"0"' of type 'string'
  string F = "0";
 ^
llvm-tblgen: llvm/include/llvm/Support/Casting.h:109: static bool llvm::isa_impl_cl<llvm::UnsetInit, const llvm::Init *>::doit(const From *) [To = llvm::UnsetInit, From = const llvm::Init *]: Assertion `Val && "isa<> used on a null pointer"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to