]> granicus.if.org Git - clang/commitdiff
Remove dead code.
authorZhongxing Xu <xuzhongxing@gmail.com>
Wed, 14 Oct 2009 05:07:51 +0000 (05:07 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Wed, 14 Oct 2009 05:07:51 +0000 (05:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84073 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index 35a1bf2d722ac9cc872661cc731d2a15b9a5f2dd..5079acef54b45daf5a6002a28c58d329957bf4fb 100644 (file)
@@ -1167,19 +1167,6 @@ void GRExprEngine::EvalLoad(ExplodedNodeSet& Dst, Expr* Ex, ExplodedNode* Pred,
   }
   else {
     SVal V = state->getSVal(cast<Loc>(location), Ex->getType());
-
-    // Casts can create weird scenarios where a location must be implicitly
-    // converted to something else.  For example:
-    //
-    //  void *x;
-    //  int *y = (int*) &x; // void** -> int* cast.
-    //  invalidate(y);  // 'x' now binds to a symbolic region
-    //  int z = *y;
-    //
-    //if (isa<Loc>(V) && !Loc::IsLocType(Ex->getType())) {
-    //  V = EvalCast(V, Ex->getType());
-    //}
-
     MakeNode(Dst, Ex, Pred, state->BindExpr(Ex, V), K, tag);
   }
 }