Skip to content

instcombine: DerivedTypes.h:243: const llvm::Type* llvm::StructType::getElementType(unsigned int) const: Assertion `N < NumContainedTys && "Element number out of range!"' failed #3753

@edwintorok

Description

@edwintorok
Bugzilla Link 3381
Resolution FIXED
Resolved on Jan 24, 2009 13:27
Version unspecified
OS Linux
Attachments bugpoint-reduced-simplified.bc, gzipped preprocessed file for reference

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions