diff --git a/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp b/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp index 33d0d9656452..34e8aaf071be 100644 --- a/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp +++ b/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp @@ -517,9 +517,6 @@ SVal SimpleSValBuilder::evalBinOpNN(ProgramStateRef state, } else if (isa(Sym)) { - // LHS is a simple symbol (not a symbolic expression). - QualType lhsType = Sym->getType(Context); - // Does the symbol simplify to a constant? If so, "fold" the constant // by setting 'lhs' to a ConcreteInt and try again. if (const llvm::APSInt *Constant = state->getSymVal(Sym)) {