forked from facebook/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Work around Clang 13 treating the truncation fast path as UB and optimising it to not work on compile time constants. This appears to be a bug in clang, since adding the `-fno-strict-float-cast-overflow` flag does not fix it. Nonetheless, this diff also adds that flag, since it is generally desirable for Hermes code. Reviewed By: tmikov Differential Revision: D31939409 fbshipit-source-id: b86830d129e6bf1b872e502294ab9ea1893ce242
- Loading branch information
1 parent
f60423a
commit 01f70aa
Showing
2 changed files
with
26 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters