| | | | --- | --- | | Bugzilla Link | [3381](https://llvm.org/bz3381) | | Resolution | FIXED | | Resolved on | Jan 24, 2009 13:27 | | Version | unspecified | | OS | Linux | | Attachments | [bugpoint-reduced-simplified.bc](https://user-images.githubusercontent.com/92601246/143738745-697690e9-b841-47ee-ae34-c907c3109668.gz), [gzipped preprocessed file for reference](https://user-images.githubusercontent.com/92601246/143738746-bb3559af-fee7-4395-95ce-2df797952681.gz) | ## Extended Description Another testcase from the kernel: $ ~/llvm-bootstrap/install/bin/opt -instcombine bugpoint-reduced-simplified.bc opt: /home/edwin/llvm-bootstrap/llvm/include/llvm/DerivedTypes.h:243: const llvm::Type* llvm::StructType::getElementType(unsigned int) const: Assertion `N < NumContainedTys && "Element number out of range!"' failed. 0 opt 0x0000000000783b8f 1 libc.so.6 0x00007f7124d6cf60 2 libc.so.6 0x00007f7124d6ced5 gsignal + 53 3 libc.so.6 0x00007f7124d6e3f3 abort + 387 4 libc.so.6 0x00007f7124d65dc9 __assert_fail + 233 5 opt 0x000000000052d068 6 opt 0x000000000053bd96 7 opt 0x00000000005517a5 8 opt 0x0000000000552dab 9 opt 0x00000000005534be 10 opt 0x00000000007216bb llvm::FPPassManager::runOnFunction(llvm::Function&) + 347 11 opt 0x00000000007218f6 llvm::FPPassManager::runOnModule(llvm::Module&) + 166 12 opt 0x0000000000721297 llvm::MPPassManager::runOnModule(llvm::Module&) + 199 13 opt 0x0000000000721496 llvm::PassManagerImpl::run(llvm::Module&) + 134 14 opt 0x0000000000497176 main + 3046 15 libc.so.6 0x00007f7124d591a6 __libc_start_main + 230 16 opt 0x000000000048be49 sinh + 65 Aborted