]> granicus.if.org Git - clang/commit
Emit a proper diagnostic when attempting to forward inalloca arguments
authorReid Kleckner <rnk@google.com>
Wed, 12 Dec 2018 23:46:06 +0000 (23:46 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 12 Dec 2018 23:46:06 +0000 (23:46 +0000)
commitfeb1567e07573100ea14f9aea02f81463e791496
treea28544917528f605516b138838c4862c505d7dce
parent9e1dc4e6a3a82e5f6a205f19e1117657debd64a5
Emit a proper diagnostic when attempting to forward inalloca arguments

The previous assertion was relatively easy to trigger, and likely will
be easy to trigger going forward. EmitDelegateCallArg is relatively
popular.

This cleanly diagnoses PR28299 while I work on a proper solution.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348991 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp
test/CodeGenCXX/inalloca-lambda.cpp [new file with mode: 0644]