[llvm-bugs] [Bug 41658] New: "cannot use inalloca attribute on a register parameter" after argpromoting x86_thiscallcc
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Apr 29 14:39:36 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41658
Bug ID: 41658
Summary: "cannot use inalloca attribute on a register
parameter" after argpromoting x86_thiscallcc
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Interprocedural Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: llvm at inglorion.net
CC: llvm-bugs at lists.llvm.org
The x86_thiscallcc calling convention passes the first parameter (expected to
be "this") in the ECX register. ArgumentPromotion can result in this first
parameter being elided. If this causes an inalloca parameter to end up in the
first slot, we try to pass that in a register, resulting in LLVM ERROR: cannot
use inalloca attribute on a register parameter.
--
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/20190429/70ee223f/attachment.html>
More information about the llvm-bugs
mailing list