From: Chandler Carruth Date: Sun, 4 Jan 2015 23:13:57 +0000 (+0000) Subject: [PM] Cleanup a const_cast and other machinery left over in this code X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=186c5ccb074ee1c4ef2603543921c955f184a15e;p=oota-llvm.git [PM] Cleanup a const_cast and other machinery left over in this code from before I removed thet non-const use of the function. The unused variable that held the const_cast was already kindly removed by Michael. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225143 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp index 48710f715e0..bba2f9f2735 100644 --- a/lib/Analysis/ValueTracking.cpp +++ b/lib/Analysis/ValueTracking.cpp @@ -489,8 +489,7 @@ static void computeKnownBitsFromAssume(Value *V, APInt &KnownZero, if (!AssumeVH) continue; CallInst *I = cast(AssumeVH); - assert((I->getParent()->getParent() == - const_cast(Q.CxtI->getParent()->getParent())) && + assert(I->getParent()->getParent() == Q.CxtI->getParent()->getParent() && "Got assumption for the wrong function!"); if (Q.ExclInvs.count(I)) continue;