This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Fix zero-initializing of floating types
ClosedPublic

Authored by tbaeder on Mar 24 2023, 12:35 AM.

Details

Summary

After the discussion in https://reviews.llvm.org/D141472, this fixes zero-initializing members of floating type

Diff Detail

Event Timeline

tbaeder created this revision.Mar 24 2023, 12:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2023, 12:35 AM
tbaeder requested review of this revision.Mar 24 2023, 12:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2023, 12:35 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Mar 24 2023, 7:11 AM

LGTM with a suggestion.

clang/lib/AST/Interp/ByteCodeExprGen.cpp
956–960

Desperately needs reformatting, but can do this in a one-liner that's actually a bit more clear.

This revision is now accepted and ready to land.Mar 24 2023, 7:11 AM
tbaeder updated this revision to Diff 508619.Mar 27 2023, 6:10 AM
tbaeder marked an inline comment as done.
This revision was landed with ongoing or failed builds.Apr 6 2023, 1:52 AM
This revision was automatically updated to reflect the committed changes.