llvm-project/clang/lib
Ilya Biryukov 0ee4a08c00 [Sema] Pop function scope when instantiating a func with skipped body
Summary:
By calling ActOnFinishFunctionBody(). Previously we were only calling
ActOnSkippedFunctionBody, which didn't pop the function scope.
This causes a crash when running on our internal code. No test-case,
though, since I couldn't come up with a small example in reasonable
time.

The bug was introduced in r321174.

Reviewers: bkramer, sammccall, sepavloff, aaron.ballman

Reviewed By: sammccall, aaron.ballman

Subscribers: aaron.ballman, cfe-commits

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

llvm-svn: 327504
2018-03-14 13:18:30 +00:00
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST Reland "[Attr] Fix parameter indexing for several attributes" 2018-03-13 14:51:22 +00:00
ASTMatchers PR36581: Support data recursion over Stmts in AST matchers. 2018-03-02 21:55:03 +00:00
Analysis [Analysis] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-13 21:32:01 +00:00
Basic [ARM] ACLE FP16 feature test macros 2018-03-13 22:11:06 +00:00
CodeGen This reverts "r327189 - [ARM] Add ARMv8.2-A FP16 vector intrinsic" 2018-03-13 19:38:56 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver [OpenMP] Add flag for linking runtime bitcode library 2018-03-13 23:19:52 +00:00
Edit [NFC] Extract method to SourceManager for traversing the macro "stack" 2018-02-09 23:30:07 +00:00
Format [clang-format] Improve detection of Objective-C block types 2018-03-12 15:42:40 +00:00
Frontend [Tooling] Clear the PreambleSrcLocCache when preamble is discarded during reparsing 2018-03-12 19:36:29 +00:00
FrontendTool Make a build bot happy. 2018-02-10 14:26:53 +00:00
Headers [DOXYGEN] Fix doxygen and content issues in mmintrin.h 2018-03-09 00:38:51 +00:00
Index [Index] fix USR generation for namespace{extern{X}} 2018-02-02 14:13:37 +00:00
Lex [ObjC] Allow declaring __strong pointer fields in structs in Objective-C 2018-02-28 07:15:55 +00:00
Parse [MS] Accept __unaligned as a qualifier on member function pointers 2018-03-07 23:26:02 +00:00
Rewrite [analyzer] Show full analyzer invocation for reproducibility in HTML reports 2018-01-23 19:28:52 +00:00
Sema [Sema] Pop function scope when instantiating a func with skipped body 2018-03-14 13:18:30 +00:00
Serialization Serialize the NonTrivialToPrimitive* flags I added in r326307. 2018-03-13 18:58:25 +00:00
StaticAnalyzer StaticAnalyzer: fix compiler warning. NFC 2018-03-14 10:16:40 +00:00
Tooling Revert "[Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>" 2018-02-27 15:54:55 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00