This is an archive of the discontinued LLVM Phabricator instance.

FLT_EVAL_METHOD should always be set
Needs ReviewPublic

Authored by zahiraam on Feb 18 2022, 12:27 PM.

Details

Summary

This is a fix for a bug that showed up in the (reverted for now) patch https://reviews.llvm.org/D109239
The bug entry for it is here: https://github.com/llvm/llvm-project/issues/53931
This will not be pushed to the repo, that's why I am not adding any repo to this entry. It will eventually be added to the bigger patch above.

Diff Detail

Event Timeline

zahiraam requested review of this revision.Feb 18 2022, 12:27 PM
zahiraam created this revision.
zahiraam updated this revision to Diff 410147.Feb 20 2022, 6:30 AM
zahiraam edited the summary of this revision. (Show Details)

This looks about like what I'd expect to see in terms of the code changes.

clang/test/Preprocessor/flt_eval_macro.cpp
46

Why did we drop this? Seems like we're losing test coverage now?

zahiraam marked an inline comment as done.Feb 22 2022, 10:55 AM
clang/test/Preprocessor/flt_eval_macro.cpp
46

Added it back.

MaskRay added inline comments.
clang/test/Preprocessor/flt_eval_macro.cpp
2

It is customary to indent continuation lines with 2 spaces.

3

Drop // (uncommon and making { } jumping difficult)

zahiraam marked 3 inline comments as done.Feb 22 2022, 11:16 AM

@MaskRay Thanks. Will do that.