Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed: (InVals.size() == Ins.size() && "LowerFormalArguments didn't emit the correct number of values!") #31

Closed
dylanmckay opened this issue Apr 26, 2017 · 1 comment
Labels
A-libcore Affects compiling the core library A-llvm Affects the LLVM AVR backend

Comments

@dylanmckay
Copy link
Member

dylanmckay commented Apr 26, 2017

Found while compiling libcore with the patch from #27 and #32 applied

libcore.ll

./bin/llc ~/libcore.ll -O0 -o /dev/null
Assertion failed: (InVals.size() == Ins.size() && "LowerFormalArguments didn't emit the correct number of values!"), function LowerArguments, file /Users/dylan/projects/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp, line 8300.
0  libLLVMSupport.dylib      0x000000010e6da30c llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 60
1  libLLVMSupport.dylib      0x000000010e6da859 PrintStackTraceSignalHandler(void*) + 25
2  libLLVMSupport.dylib      0x000000010e6d6989 llvm::sys::RunSignalHandlers() + 425
3  libLLVMSupport.dylib      0x000000010e6daba2 SignalHandler(int) + 354
4  libsystem_platform.dylib  0x00007fff92361b3a _sigtramp + 26
5  libsystem_platform.dylib  0x0100000100000000 _sigtramp + 1841947872
6  libsystem_c.dylib         0x00007fff921e6420 abort + 129
7  libsystem_c.dylib         0x00007fff921ad893 basename_r + 0
8  libLLVMSelectionDAG.dylib 0x000000010e039290 llvm::SelectionDAGISel::LowerArguments(llvm::Function const&) + 4864
9  libLLVMSelectionDAG.dylib 0x000000010e0f2244 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 612
10 libLLVMSelectionDAG.dylib 0x000000010e0f04de llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 2350
11 libLLVMAVRCodeGen.dylib   0x000000010a0a3d0b llvm::AVRDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 59
12 libLLVMCodeGen.dylib      0x000000010b6db481 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 449
13 libLLVMCore.dylib         0x000000010c6eb24f llvm::FPPassManager::runOnFunction(llvm::Function&) + 399
14 libLLVMCore.dylib         0x000000010c6eb755 llvm::FPPassManager::runOnModule(llvm::Module&) + 117
15 libLLVMCore.dylib         0x000000010c6ec524 (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) + 2196
16 libLLVMCore.dylib         0x000000010c6eba16 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 342
17 libLLVMCore.dylib         0x000000010c6ed251 llvm::legacy::PassManager::run(llvm::Module&) + 33
18 llc                       0x00000001055bec80 compileModule(char**, llvm::LLVMContext&) + 21856
19 llc                       0x00000001055b8b1f main + 2447
20 libdyld.dylib             0x00007fff92152235 start + 1
21 libdyld.dylib             0x0000000000000005 start + 1844108753
Stack dump:
0.      Program arguments: ./bin/llc /Users/dylan/libcore.bc -o /Users/dylan/libcore -O0
1.      Running pass 'Function Pass Manager' on module '/Users/dylan/libcore.bc'.
2.      Running pass 'AVR DAG->DAG Instruction Selection' on function '@"_ZN40_$LT$u128$u20$as$u20$core..num..Zero$GT$4zero17hea846d9fb7aa688eE"'
[1]    5660 abort      ./bin/llc ~/libcore.bc -o ~/libcore -O0
@dylanmckay dylanmckay added A-libcore Affects compiling the core library A-llvm Affects the LLVM AVR backend labels Apr 26, 2017
@dylanmckay
Copy link
Member Author

Duplicate of #57.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-libcore Affects compiling the core library A-llvm Affects the LLVM AVR backend
Projects
None yet
Development

No branches or pull requests

1 participant