Commit 94bc857
committed
UPSTREAM: [clang-repl] Always clean up scope and context for TopLevelStmtDecl (llvm#150215)
This fixes an issue introduced by
llvm#84150, where failing to pop
compound scope, function scope info, and decl context after a failed
statement could lead to an inconsistent internal state.
(cherry picked from commit 38a977d)1 parent d7d3797 commit 94bc857
File tree
3 files changed
+10
-3
lines changed- clang
- lib
- Parse
- Sema
- test/Interpreter
3 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6023 | 6023 | | |
6024 | 6024 | | |
6025 | 6025 | | |
| 6026 | + | |
6026 | 6027 | | |
6027 | 6028 | | |
6028 | 6029 | | |
6029 | | - | |
6030 | | - | |
6031 | 6030 | | |
6032 | 6031 | | |
6033 | 6032 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20250 | 20250 | | |
20251 | 20251 | | |
20252 | 20252 | | |
20253 | | - | |
| 20253 | + | |
| 20254 | + | |
20254 | 20255 | | |
20255 | 20256 | | |
20256 | 20257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
0 commit comments