Skip to content

Commit 5aaf22e

Browse files
donneyprmikolaj-pirog
authored andcommitted
[clang][x86][bytecode] remove trailing returns type from interp__builtin_elementwise_int_binop callbacks (llvm#164679)
Related to the discussion in llvm#162346, this PR is to remove the trailing type from the 'interp__builtin_elementwise_int_binop' callbacks.
1 parent bb5969c commit 5aaf22e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3471,7 +3471,7 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call,
34713471
case Builtin::BI_lrotl:
34723472
case Builtin::BI_rotl64:
34733473
return interp__builtin_elementwise_int_binop(
3474-
S, OpPC, Call, [](const APSInt &Value, const APSInt &Amount) -> APInt {
3474+
S, OpPC, Call, [](const APSInt &Value, const APSInt &Amount) {
34753475
return Value.rotl(Amount);
34763476
});
34773477

@@ -3485,7 +3485,7 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call,
34853485
case Builtin::BI_lrotr:
34863486
case Builtin::BI_rotr64:
34873487
return interp__builtin_elementwise_int_binop(
3488-
S, OpPC, Call, [](const APSInt &Value, const APSInt &Amount) -> APInt {
3488+
S, OpPC, Call, [](const APSInt &Value, const APSInt &Amount) {
34893489
return Value.rotr(Amount);
34903490
});
34913491

0 commit comments

Comments
 (0)