diff options
author | Farzon Lotfi <1802579+farzonl@users.noreply.github.com> | 2024-02-26 17:12:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 16:12:13 -0600 |
commit | a870a48c09ea32a5c179e827ed60e53e748cbc49 (patch) | |
tree | acac75d98879669097a84404fa2536bf42a66b14 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | e4604c35f5ccc4478c3b649edbc74b494098a442 (diff) | |
download | llvm-a870a48c09ea32a5c179e827ed60e53e748cbc49.zip llvm-a870a48c09ea32a5c179e827ed60e53e748cbc49.tar.gz llvm-a870a48c09ea32a5c179e827ed60e53e748cbc49.tar.bz2 |
[HLSL] Fix casting asserts (#82827)
There are two issues here. first `ICK_Floating_Integral` were always
defaulting to `CK_FloatingToIntegral` for vectors regardless of
direction of cast. Check was scalar only so added a vec float check to
the conditional.
Second issue was float to int casts were resolving to
ICK_Integral_Promotion when they need to be resolving to
CK_FloatingToIntegral. This was fixed by changing the ordering of
conversion checks.
This fixes #82826
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions