[OPENMP]Fix PR47790: segfault in frontend while parsing Objective-C with OpenMP.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 12 Nov 2020 19:42:30 +0000 (11:42 -0800)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 12 Nov 2020 21:26:11 +0000 (13:26 -0800)
commit07b568a9c8db8e5d4d4af4c766ecfb38145fb0bf
tree40c0cdb3f94d1864fbc517d2d6cacb29ed530df4
parent9c504ec06da636832d03e98581eade3d8f81eb24
[OPENMP]Fix PR47790: segfault in frontend while parsing Objective-C with OpenMP.

Need to check if the sema is actually finishing a function decl.

Differential Revision: https://reviews.llvm.org/D91376
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaObjCXX/objcxx_openmp.mm [new file with mode: 0644]