[clang] cf078ad - [analyzer][NFC] Remove unused ExprEngine::evalBinOp functions

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 14 10:15:51 PDT 2022


Author: Balazs Benics
Date: 2022-06-14T19:15:20+02:00
New Revision: cf078adc90f02ad5c06162ad871035d970f072aa

URL: https://github.com/llvm/llvm-project/commit/cf078adc90f02ad5c06162ad871035d970f072aa
DIFF: https://github.com/llvm/llvm-project/commit/cf078adc90f02ad5c06162ad871035d970f072aa.diff

LOG: [analyzer][NFC] Remove unused ExprEngine::evalBinOp functions

Reviewed By: martong

Differential Revision: https://reviews.llvm.org/D127732

Added: 
    

Modified: 
    clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
index 89c0a121d95f..3787f8f01b34 100644
--- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
+++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
@@ -608,17 +608,6 @@ class ExprEngine {
                          StmtNodeBuilder &Bldr);
 
 public:
-  SVal evalBinOp(ProgramStateRef state, BinaryOperator::Opcode op,
-                 NonLoc L, NonLoc R, QualType T) {
-    return svalBuilder.evalBinOpNN(state, op, L, R, T);
-  }
-
-  SVal evalBinOp(ProgramStateRef state, BinaryOperator::Opcode op,
-                 NonLoc L, SVal R, QualType T) {
-    return R.isValid() ? svalBuilder.evalBinOpNN(state, op, L,
-                                                 R.castAs<NonLoc>(), T) : R;
-  }
-
   SVal evalBinOp(ProgramStateRef ST, BinaryOperator::Opcode Op,
                  SVal LHS, SVal RHS, QualType T) {
     return svalBuilder.evalBinOp(ST, Op, LHS, RHS, T);


        


More information about the cfe-commits mailing list