[llvm-bugs] [Bug 33297] New: Zero-size byval argument crashes AArch64 isel
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jun 3 16:04:11 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33297
Bug ID: 33297
Summary: Zero-size byval argument crashes AArch64 isel
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: AArch64
Assignee: unassignedbugs at nondot.org
Reporter: code at klickverbot.at
CC: llvm-bugs at lists.llvm.org
This hits an assert in LLVM 4.0 (also seems to be present in trunk):
---
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux-gnu"
define i32 @foo([0 x i32]* byval align 4 %bar) {
ret i32 0
}
---
```
llc: /build/src/llvm/lib/CodeGen/MachineFunction.cpp:824: int
llvm::MachineFrameInfo::CreateFixedObject(uint64_t, int64_t, bool, bool):
Assertion `Size != 0 && "Cannot allocate zero size fixed stack objects!"'
failed.
#0 0x0000000000ea4378 (llc+0xea4378)
Stack dump:
0. Program arguments: llc test.ll
1. Running pass 'Function Pass Manager' on module 'test.ll'.
2. Running pass 'AArch64 Instruction Selection' on function '@foo'
Aborted
```
While the code is not very useful, the backend probably shouldn't assert.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170603/f095ccc0/attachment.html>
More information about the llvm-bugs
mailing list