| Issue |
52994
|
| Summary |
Assertion errors in llvm/lib/IR/Constants.cpp at ToT clang
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
zeroomega
|
We are seeing assertion errors in `llvm/lib/IR/Constants.cpp` after change https://github.com/llvm/llvm-project/commit/bbeaf2aac678633749e7385466da10a1c0120b3b was landed. The error message was:
```
clang++: llvm/lib/IR/Constants.cpp:2281: static llvm::Constant *llvm::ConstantExpr::getBitCast(llvm::Constant *, llvm::Type *, bool): Assertion `CastInst::castIsValid(Instruction::BitCast, C, DstTy) && "Invalid constantexpr bitcast!"' failed.
```
The error disappeared after this change was reverted locally.
Reproducer is attached:
[builds_8825975828562758241_command_parser-85c711.zip](https://github.com/llvm/llvm-project/files/7809888/builds_8825975828562758241_command_parser-85c711.zip)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs