Skip to content

Commit 1e73677

Browse files
committed
remove signed int representation assert it breaks CodeGen/AArch64/sve-vector-arith-ops.c test case use of i8s
1 parent 22982a4 commit 1e73677

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clang/lib/CodeGen/CGExprScalar.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3968,8 +3968,6 @@ Value *ScalarExprEmitter::EmitRem(const BinOpInfo &Ops) {
39683968
if (CGF.getLangOpts().HLSL && Ops.Ty->hasFloatingRepresentation())
39693969
return Builder.CreateFRem(Ops.LHS, Ops.RHS, "rem");
39703970

3971-
assert(Ops.Ty->hasSignedIntegerRepresentation() &&
3972-
"Srem expected a signed integer representation.");
39733971
return Builder.CreateSRem(Ops.LHS, Ops.RHS, "rem");
39743972
}
39753973

0 commit comments

Comments
 (0)