This is an archive of the discontinued LLVM Phabricator instance.

Pragma `clang fp eval_method` needs to take as input a supported value.
ClosedPublic

Authored by zahiraam on Mar 10 2022, 8:17 AM.

Details

Summary

Diagnose when #pragma clang fp eval_method doesn't have a supported value. Currently the compiler is crashing.

Diff Detail

Event Timeline

zahiraam created this revision.Mar 10 2022, 8:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2022, 8:17 AM
zahiraam requested review of this revision.Mar 10 2022, 8:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2022, 8:17 AM
aaron.ballman accepted this revision.Mar 10 2022, 9:49 AM

LGTM with a tiny tweak to the diagnostic.

clang/include/clang/Basic/DiagnosticParseKinds.td
1493

Slight tweak here to use a list instead of multiple ors.

This revision is now accepted and ready to land.Mar 10 2022, 9:49 AM
zahiraam updated this revision to Diff 414416.Mar 10 2022, 9:57 AM
zahiraam updated this revision to Diff 414424.Mar 10 2022, 10:28 AM
zahiraam updated this revision to Diff 414467.Mar 10 2022, 12:43 PM