Skip to content

Commit 0065161

Browse files
committed
Remove assert introduced in #71098
This should effectively preserve the old behavior for non-HLSL code.
1 parent 2549c24 commit 0065161

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clang/lib/CodeGen/CGExprScalar.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,8 +2425,6 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) {
24252425
case CK_IntegralToFloating: {
24262426
if (E->getType()->isVectorType() && DestTy->isVectorType()) {
24272427
// TODO: Support constrained FP intrinsics.
2428-
assert(!Builder.getIsFPConstrained() &&
2429-
"FP Constrained vector casts not supported yet.");
24302428
QualType SrcElTy = E->getType()->castAs<VectorType>()->getElementType();
24312429
if (SrcElTy->isSignedIntegerOrEnumerationType())
24322430
return Builder.CreateSIToFP(Visit(E), ConvertType(DestTy), "conv");
@@ -2439,8 +2437,6 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) {
24392437
case CK_FloatingToIntegral: {
24402438
if (E->getType()->isVectorType() && DestTy->isVectorType()) {
24412439
// TODO: Support constrained FP intrinsics.
2442-
assert(!Builder.getIsFPConstrained() &&
2443-
"FP Constrained vector casts not supported yet.");
24442440
QualType DstElTy = DestTy->castAs<VectorType>()->getElementType();
24452441
if (DstElTy->isSignedIntegerOrEnumerationType())
24462442
return Builder.CreateFPToSI(Visit(E), ConvertType(DestTy), "conv");
@@ -2453,8 +2449,6 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) {
24532449
case CK_FloatingCast: {
24542450
if (E->getType()->isVectorType() && DestTy->isVectorType()) {
24552451
// TODO: Support constrained FP intrinsics.
2456-
assert(!Builder.getIsFPConstrained() &&
2457-
"FP Constrained vector casts not supported yet.");
24582452
QualType SrcElTy = E->getType()->castAs<VectorType>()->getElementType();
24592453
QualType DstElTy = DestTy->castAs<VectorType>()->getElementType();
24602454
if (DstElTy->castAs<BuiltinType>()->getKind() <

0 commit comments

Comments
 (0)