It is checking is the destination type is sized, when the source type is the one that shoul dbe checked. It cause assertion failure down the road is the source type is unsized but destination type is.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
unittests/IR/ConstantsTest.cpp | ||
---|---|---|
387–398 ↗ | (On Diff #42004) | This test doesn't seem related to the change in question. It worked before your change. |
400–408 ↗ | (On Diff #42004) | I'd move this test to test/Assembler/ConstantExprFoldCast.ll The IR translation of this test would be something like: %Unsized = type opaque %S2 = type { i32, %Unsized } @G2 = external global %S2 @G3 = global i32* bitcast (%S2* @G2 to i32*) |
Comment Actions
Move the GEP test in test/Assembler/ConstantExprFoldCast.ll
The regression test cannot be moved there.