Skip to content

Commit d33f881

Browse files
committed
[clang] remove unused variables
Signed-off-by: Shreeyash Pandey <[email protected]>
1 parent 67efeb8 commit d33f881

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3018,7 +3018,6 @@ static bool interp__builtin_x86_sqrt(InterpState &S, CodePtr OpPC,
30183018
assert(NumArgs == 1 || NumArgs == 2);
30193019
const Expr *ArgExpr = Call->getArg(0);
30203020
QualType ArgTy = ArgExpr->getType();
3021-
QualType ResultTy = Call->getType();
30223021

30233022
if (!(ArgTy->isRealFloatingType() ||
30243023
(ArgTy->isVectorType() &&
@@ -3063,7 +3062,6 @@ static bool interp__builtin_x86_sqrt(InterpState &S, CodePtr OpPC,
30633062
assert(Arg.getFieldDesc()->getNumElems() ==
30643063
Dst.getFieldDesc()->getNumElems());
30653064

3066-
PrimType ElemT = *S.getContext().classify(VT->getElementType());
30673065
unsigned NumElems = VT->getNumElements();
30683066

30693067
for (unsigned I = 0; I != NumElems; ++I) {

clang/lib/AST/ExprConstant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12264,8 +12264,8 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) {
1226412264
double SqrtValue = sqrt(DoubleValue);
1226512265
llvm::APFloat TempValue(SqrtValue);
1226612266
bool LosesInfo;
12267-
auto RetStatus = TempValue.convert(
12268-
Semantics, llvm::RoundingMode::NearestTiesToEven, &LosesInfo);
12267+
TempValue.convert(Semantics, llvm::RoundingMode::NearestTiesToEven,
12268+
&LosesInfo);
1226912269
Value = TempValue;
1227012270
}
1227112271
ResultElements.push_back(APValue(Value));

0 commit comments

Comments
 (0)