Don't crash when generating code for __attribute__((naked)) member functions.
authorJustin Lebar <jlebar@google.com>
Wed, 27 Jul 2016 22:04:24 +0000 (22:04 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 27 Jul 2016 22:04:24 +0000 (22:04 +0000)
commit919fe9877fca5ab9d4fd1752d75ca54d4d013da9
tree66bd229cf7974ad531ff067816bfb7926e674191
parent9ae82cb0b9b30a8276acf36d7abd6fdaefbdaab8
Don't crash when generating code for __attribute__((naked)) member functions.

Summary:
Previously this crashed inside EmitThisParam().  There should be no
prelude for naked functions, so just skip the whole thing.

Reviewers: majnemer

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D22715

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