[clang] [HLSL] Fix casting asserts (PR #82827)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 23 13:08:12 PST 2024
================
@@ -4843,7 +4843,7 @@ Sema::PerformImplicitConversion(Expr *From, QualType ToType,
.get();
break;
case ICK_Floating_Integral:
- if (ToType->isRealFloatingType())
+ if (ToType->isRealFloatingType() || ToType->hasFloatingRepresentation())
----------------
farzonl wrote:
I can fix that up.
For your second question line 4800 `assert(From->getType()->isVectorType() && ToType->isVectorType()`. It should just be vectors for now.
https://github.com/llvm/llvm-project/pull/82827
More information about the cfe-commits
mailing list