Skip to content

[clang] ExprConstant - VisitBuiltinCallExpr - rotation folds don't require explicit APInt::urem calls #162046

@RKSimon

Description

@RKSimon

As noticed on #161924 - evaluation of the Builtin::BI__builtin_rotate* intrinsics have an unnecessary Amt.urem() call - APInt::rotl/r handles this for us so we can remove these.

Metadata

Metadata

Assignees

Labels

clang:frontendLanguage frontend issues, e.g. anything involving "Sema"constexprAnything related to constant evaluationgood first issuehttps://github.com/llvm/llvm-project/contribute

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions