Crash in TableGen parser
Open
crash-on-invalid
tablegen
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
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::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.
Contributor guide
Assessment
This issue has not been assessed yet.