[cfe-commits] r67748 - /cfe/trunk/lib/Analysis/GRSimpleVals.cpp

Zhongxing Xu xuzhongxing at gmail.com
Thu Mar 26 01:40:44 PDT 2009


Author: zhongxingxu
Date: Thu Mar 26 03:40:37 2009
New Revision: 67748

URL: http://llvm.org/viewvc/llvm-project?rev=67748&view=rev
Log:
Simplify some code. No functionality change.

Modified:
    cfe/trunk/lib/Analysis/GRSimpleVals.cpp

Modified: cfe/trunk/lib/Analysis/GRSimpleVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRSimpleVals.cpp?rev=67748&r1=67747&r2=67748&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/GRSimpleVals.cpp (original)
+++ cfe/trunk/lib/Analysis/GRSimpleVals.cpp Thu Mar 26 03:40:37 2009
@@ -231,22 +231,10 @@
         }
         
       case nonloc::SymbolValKind:
-        if (isa<nonloc::ConcreteInt>(R)) {
-          if (Op >= BinaryOperator::LT && Op <= BinaryOperator::NE) {
-            const SymIntExpr *SE =
-              Eng.getSymbolManager().getSymIntExpr(
-                                     cast<nonloc::SymbolVal>(L).getSymbol(), Op,
-                                     cast<nonloc::ConcreteInt>(R).getValue(),T);
-
-            
-            return nonloc::SymExprVal(SE);
-          } else {
-            return NonLoc::MakeVal(Eng.getSymbolManager(),
-                                   cast<nonloc::SymbolVal>(L).getSymbol(),
-                                   Op, cast<nonloc::ConcreteInt>(R).getValue(),
-                                   T);
-          }
-        }
+        if (isa<nonloc::ConcreteInt>(R))
+          return NonLoc::MakeVal(Eng.getSymbolManager(),
+                                 cast<nonloc::SymbolVal>(L).getSymbol(), Op,
+                                 cast<nonloc::ConcreteInt>(R).getValue(), T);
         else
           return UnknownVal();
     }





More information about the cfe-commits mailing list