[all-commits] [llvm/llvm-project] c9e403: [clang][Interp] Fix zero-init of float and pointer...
Timm Bäder via All-commits
all-commits at lists.llvm.org
Tue Apr 25 00:01:14 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c9e403d1992b064e9cd5b94749fb3f00fa0c0910
https://github.com/llvm/llvm-project/commit/c9e403d1992b064e9cd5b94749fb3f00fa0c0910
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2023-04-25 (Tue, 25 Apr 2023)
Changed paths:
M clang/lib/AST/Interp/ByteCodeExprGen.cpp
M clang/test/AST/Interp/arrays.cpp
Log Message:
-----------
[clang][Interp] Fix zero-init of float and pointer arrays
Our Zero opcode only exists for integer types. Use
visitZeroInitializer() here as well so it works for floats and pointers.
Differential Revision: https://reviews.llvm.org/D149059
More information about the All-commits
mailing list