Commit 313c99b
[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.1 parent 4ef226c commit 313c99b
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 | |
|---|---|---|---|
| |||
5695 | 5695 | | |
5696 | 5696 | | |
5697 | 5697 | | |
| 5698 | + | |
5698 | 5699 | | |
5699 | 5700 | | |
5700 | 5701 | | |
5701 | | - | |
5702 | | - | |
5703 | 5702 | | |
5704 | 5703 | | |
5705 | 5704 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20573 | 20573 | | |
20574 | 20574 | | |
20575 | 20575 | | |
20576 | | - | |
| 20576 | + | |
| 20577 | + | |
20577 | 20578 | | |
20578 | 20579 | | |
20579 | 20580 | | |
| |||
| 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