diff options
author | Timm Bäder <tbaeder@redhat.com> | 2024-06-22 17:02:24 +0200 |
---|---|---|
committer | Timm Bäder <tbaeder@redhat.com> | 2024-06-24 10:18:05 +0200 |
commit | 33676ba543737f8e286e28a9cae81a848bdd3f09 (patch) | |
tree | b3ff7d9a22993da4b6feecaae149e5910551728f /llvm/lib/Target/DirectX/DirectXTargetMachine.cpp | |
parent | 6eaf204dbb0a6a81cddfd02f625c130f7bb1aae5 (diff) | |
download | llvm-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 'llvm/lib/Target/DirectX/DirectXTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions