[clang] [HLSL] `constexpr` vector element conversions (PR #195173)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Sun May 3 21:57:42 PDT 2026
================
@@ -568,6 +578,8 @@ bool Compiler<Emitter>::VisitCastExpr(const CastExpr *E) {
case CK_BooleanToSignedIntegral:
case CK_IntegralCast: {
+ if (E->getCastKind() == CK_IntegralCast && E->getType()->isVectorType())
----------------
tbaederr wrote:
You can switch two case statements above and move this below `CK_IntegralCast`.
https://github.com/llvm/llvm-project/pull/195173
More information about the cfe-commits
mailing list