diff options
| author | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2024-06-26 13:25:04 +0800 |
|---|---|---|
| committer | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2024-06-26 13:25:06 +0800 |
| commit | 2ee2b6aa7a3d9ba6ba13f6881b25e26d7d12c823 (patch) | |
| tree | 6a9a54cf99cefe2848b1f6ef75f01d5709bb6290 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | |
| parent | cb3469a30f875b9cd54a263803fffc93554bec12 (diff) | |
| download | llvm-2ee2b6aa7a3d9ba6ba13f6881b25e26d7d12c823.zip llvm-2ee2b6aa7a3d9ba6ba13f6881b25e26d7d12c823.tar.gz llvm-2ee2b6aa7a3d9ba6ba13f6881b25e26d7d12c823.tar.bz2 | |
[Coroutines] Clear FirstVLALoc in time
Unlike other *Loc member in FunctionScopeInfo, we didn't clear
FirstVLALoc in 'FunctionScopeInfo::Clear()'. Then it will be
problematic for the following case:
```
void bar(int n) {
int array[n];
return;
}
coroutine foo(int n) {
co_return;
}
```
When we parse `foo`, the FirstVLALoc is still valid, then the compiler
will report `vla in coroutine` error in bar, which is super odd. After
this patch, we can fix this.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions
