aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Semantics/pointer-assignment.cpp
diff options
context:
space:
mode:
authorTimm Bäder <tbaeder@redhat.com>2024-06-22 17:02:24 +0200
committerTimm Bäder <tbaeder@redhat.com>2024-06-24 10:18:05 +0200
commit33676ba543737f8e286e28a9cae81a848bdd3f09 (patch)
treeb3ff7d9a22993da4b6feecaae149e5910551728f /flang/lib/Semantics/pointer-assignment.cpp
parent6eaf204dbb0a6a81cddfd02f625c130f7bb1aae5 (diff)
downloadllvm-33676ba543737f8e286e28a9cae81a848bdd3f09.zip
llvm-33676ba543737f8e286e28a9cae81a848bdd3f09.tar.gz
llvm-33676ba543737f8e286e28a9cae81a848bdd3f09.tar.bz2
[clang][Interp] Fix variable initialization in inactive regions
When the EvalEmitter is inactive, it will simply not evaluate any of the operations we emit via emit*. However, it will still allocate variables. So the variables will be allocated, but we won't evaluate their initializer, so later when we see the variable again, it is uninitialized. Stop creating variables in that case.
Diffstat (limited to 'flang/lib/Semantics/pointer-assignment.cpp')
0 files changed, 0 insertions, 0 deletions