]> granicus.if.org Git - clang/commit
It is common for vtables to contain pointers to functions that have either incomplete...
authorAnders Carlsson <andersca@mac.com>
Tue, 24 Nov 2009 05:08:52 +0000 (05:08 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 24 Nov 2009 05:08:52 +0000 (05:08 +0000)
commitecf282b0486873309fd58ec4d3ec0dbf983b33d4
tree815a9003c3f355ff6ee8907cb54cdb4628bb1073
parentd02174c1f22974a1f0e2334e393f8345c6d11302
It is common for vtables to contain pointers to functions that have either incomplete return types or incomplete argument types.

Handle this by returning the llvm::OpaqueType for those cases, which CodeGenModule::GetOrCreateLLVMFunction knows about, and treats as being an "incomplete function".

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89736 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGVtable.cpp
lib/CodeGen/CodeGenTypes.h
test/CodeGenCXX/virtual-functions-incomplete-types.cpp [new file with mode: 0644]