[all-commits] [llvm/llvm-project] 33676b: [clang][Interp] Fix variable initialization in ina...
Timm Baeder via All-commits
all-commits at lists.llvm.org
Mon Jun 24 01:18:38 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 33676ba543737f8e286e28a9cae81a848bdd3f09
https://github.com/llvm/llvm-project/commit/33676ba543737f8e286e28a9cae81a848bdd3f09
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2024-06-24 (Mon, 24 Jun 2024)
Changed paths:
M clang/lib/AST/Interp/ByteCodeEmitter.h
M clang/lib/AST/Interp/ByteCodeExprGen.cpp
M clang/lib/AST/Interp/ByteCodeExprGen.h
M clang/lib/AST/Interp/EvalEmitter.h
M clang/test/AST/Interp/c.c
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list