]> granicus.if.org Git - clang/commit
[MS] Fix C++ destructor thunk line info for a declaration
authorReid Kleckner <rnk@google.com>
Wed, 8 Feb 2017 16:09:32 +0000 (16:09 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 8 Feb 2017 16:09:32 +0000 (16:09 +0000)
commitce504865ad232f95f2ebd6c431ac3a191cd0f5db
tree596720872abe93a5c99327b958b97ef0790281c2
parent7cd8b60283f98748150b12364f317bdb69ea91dd
[MS] Fix C++ destructor thunk line info for a declaration

Sometimes the MS ABI needs to emit thunks for declarations that don't
have bodies. Destructor thunks make calls to inlinable functions, so
they need line info or LLVM will complain.

Fixes PR31893

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294465 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenFunction.cpp
test/CodeGenCXX/debug-info-ms-dtor-thunks.cpp [new file with mode: 0644]