From: Zhongxing Xu Date: Wed, 14 Oct 2009 05:07:51 +0000 (+0000) Subject: Remove dead code. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=092a9a94b7adc8fb5ffa6ba11f27433a420d2983;p=clang Remove dead code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84073 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index 35a1bf2d72..5079acef54 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -1167,19 +1167,6 @@ void GRExprEngine::EvalLoad(ExplodedNodeSet& Dst, Expr* Ex, ExplodedNode* Pred, } else { SVal V = state->getSVal(cast(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(V) && !Loc::IsLocType(Ex->getType())) { - // V = EvalCast(V, Ex->getType()); - //} - MakeNode(Dst, Ex, Pred, state->BindExpr(Ex, V), K, tag); } }