aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDing Fei <fding@feysh.com>2024-01-10 08:49:36 +0800
committerGitHub <noreply@github.com>2024-01-10 08:49:36 +0800
commit46944210ebd93765b068eeba22bd3e337099af3e (patch)
treef5350da1fe8cece85cca447e144f0f6fc8c64fd3 /flang/lib/Frontend/CompilerInvocation.cpp
parent412d784188257f6b8a3748ac9a800002db861181 (diff)
downloadllvm-46944210ebd93765b068eeba22bd3e337099af3e.zip
llvm-46944210ebd93765b068eeba22bd3e337099af3e.tar.gz
llvm-46944210ebd93765b068eeba22bd3e337099af3e.tar.bz2
[clang][Parser] Pop scope prior VarDecl invalidating by invalid init (#77434)
Invalid (direct) initializer would invalid `VarDecl` so `InitializerScopeRAII` cannot restore scope stack balance. As with other kind of initializer, `InitializerScopeRAII::pop()` is moved up before `Sema::ActOnInitializerError()` which invalidates the `VarDecl`, so scope can be balanced and current `DeclContext` can be restored. Fixes #30908
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions