This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

tbaeder created this revision.Apr 24 2023, 6:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2023, 6:02 AM
tbaeder requested review of this revision.Apr 24 2023, 6:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2023, 6:02 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This 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
This revision was automatically updated to reflect the committed changes.