@@ -2822,9 +2822,9 @@ static bool interp__builtin_elementwise_fsh(InterpState &S, CodePtr OpPC,
2822
2822
unsigned BuiltinID) {
2823
2823
assert (Call->getNumArgs () == 3 );
2824
2824
2825
- const QualType Arg0Type = Call->getArg (0 )->getType ();
2826
- const QualType Arg1Type = Call->getArg (1 )->getType ();
2827
- const QualType Arg2Type = Call->getArg (2 )->getType ();
2825
+ QualType Arg0Type = Call->getArg (0 )->getType ();
2826
+ QualType Arg1Type = Call->getArg (1 )->getType ();
2827
+ QualType Arg2Type = Call->getArg (2 )->getType ();
2828
2828
2829
2829
// Non-vector integer types.
2830
2830
if (!Arg0Type->isVectorType ()) {
@@ -2875,13 +2875,12 @@ static bool interp__builtin_elementwise_fsh(InterpState &S, CodePtr OpPC,
2875
2875
Shift = VecShift.elem <T>(I).toAPSInt ();
2876
2876
});
2877
2877
APSInt Result;
2878
- if (BuiltinID == Builtin::BI__builtin_elementwise_fshl) {
2878
+ if (BuiltinID == Builtin::BI__builtin_elementwise_fshl)
2879
2879
Result = APSInt (llvm::APIntOps::fshl (Hi, Lo, Shift), Hi.isUnsigned ());
2880
- } else if (BuiltinID == Builtin::BI__builtin_elementwise_fshr) {
2880
+ else if (BuiltinID == Builtin::BI__builtin_elementwise_fshr)
2881
2881
Result = APSInt (llvm::APIntOps::fshr (Hi, Lo, Shift), Hi.isUnsigned ());
2882
- } else {
2882
+ else
2883
2883
llvm_unreachable (" Wrong builtin ID" );
2884
- }
2885
2884
INT_TYPE_SWITCH_NO_BOOL (ElemT,
2886
2885
{ Dst.elem <T>(I) = static_cast <T>(Result); });
2887
2886
}
0 commit comments