Our Zero opcode only exists for integer types. Use visitZeroInitializer() here as well so it works for floats and pointers.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D149059
[clang][Interp] Fix zero-init of float and pointer arrays ClosedPublic Authored by tbaeder on Apr 24 2023, 6:02 AM.
Details Summary Our Zero opcode only exists for integer types. Use visitZeroInitializer() here as well so it works for floats and pointers.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Apr 24 2023, 3:03 PM This revision was landed with ongoing or failed builds.Apr 25 2023, 12:01 AM Closed by commit rGc9e403d1992b: [clang][Interp] Fix zero-init of float and pointer arrays (authored by tbaeder). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 516375 clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/test/AST/Interp/arrays.cpp
|