We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22982a4 commit 1e73677Copy full SHA for 1e73677
clang/lib/CodeGen/CGExprScalar.cpp
@@ -3968,8 +3968,6 @@ Value *ScalarExprEmitter::EmitRem(const BinOpInfo &Ops) {
3968
if (CGF.getLangOpts().HLSL && Ops.Ty->hasFloatingRepresentation())
3969
return Builder.CreateFRem(Ops.LHS, Ops.RHS, "rem");
3970
3971
- assert(Ops.Ty->hasSignedIntegerRepresentation() &&
3972
- "Srem expected a signed integer representation.");
3973
return Builder.CreateSRem(Ops.LHS, Ops.RHS, "rem");
3974
}
3975
0 commit comments