[instcombine] assertion error (Invalid structure index) with empty struct #1277
Labels
bugzilla
Issues migrated from bugzilla
compile-fail
Use [accepts-invalid] and [rejects-valid] instead
Extended Description
While working on emplementing some new feature in PyPy's LLVM backend (garbage collection
framework) we encountered a blocker. I've ran bugpoint on it and it came with a rather small reduced
case, which I have attached. The traceback I get is this:....
opt: Type.cpp:375: virtual const llvm::Type* llvm::StructType::getTypeAtIndex(const llvm::Value*) const:
Assertion `indexValid(V) && "Invalid structure index!"' failed.
/home/ericvrp/projects/llvm/Release/bin/opt((anonymous
namespace)::PrintStackTrace()+0x1f)[0x83c7e0f]/lib/libc.so.6(abort+0xeb)[0xb7dc30f3]
/lib/libc.so.6(__assert_fail+0xeb)[0xb7dbb4af]
/home/ericvrp/projects/llvm/Release/bin/opt(llvm::StructType::getTypeAtIndex(llvm::Value const*)
const+0x6a)[0x837b1fa]
./crash.sh: line 1: 21353 Aborted ~/projects/llvm/Release/bin/opt bugpoint-reduced-
simplified.bc -instcombine
The text was updated successfully, but these errors were encountered: