From 75c11b88af8ca66274e2353246ace0d70ddc30fc Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sun, 4 Jan 2015 23:13:57 +0000 Subject: [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. llvm-svn: 225143 --- llvm/lib/Analysis/ValueTracking.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 48710f715e0..bba2f9f2735 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/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; -- cgit v1.2.3