]> granicus.if.org Git - clang/commit
[clang][IFS] Fixing assert in clang interface stubs for enums, records, typedefs
authorPuyan Lotfi <puyan@puyan.org>
Fri, 11 Oct 2019 17:24:11 +0000 (17:24 +0000)
committerPuyan Lotfi <puyan@puyan.org>
Fri, 11 Oct 2019 17:24:11 +0000 (17:24 +0000)
commit2adffce40113c28d43ce3eac7bc64fdef0bf1e4b
treed8f246f6d062ea36a095de4b35dee72409e7b2d2
parentd57339e9b5ee73bdcdcec50c4bb38971e632d118
[clang][IFS] Fixing assert in clang interface stubs for enums, records, typedefs

The clang IFS ASTConsumer was asserting on enums, records (struct definitions in
C), and typedefs. All it needs to do is skip them because the stub just needs to
expose global object instances and functions.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374573 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/InterfaceStubFunctionsConsumer.cpp
test/InterfaceStubs/noninstancetypes.c [new file with mode: 0644]