[llvm] a1efe56 - Remove an unused variable in release build.

Haojian Wu via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 13 00:06:44 PST 2024


Author: Haojian Wu
Date: 2024-02-13T09:06:30+01:00
New Revision: a1efe56ace6099959ac97fcb09b9a7837b6d0255

URL: https://github.com/llvm/llvm-project/commit/a1efe56ace6099959ac97fcb09b9a7837b6d0255
DIFF: https://github.com/llvm/llvm-project/commit/a1efe56ace6099959ac97fcb09b9a7837b6d0255.diff

LOG: Remove an unused variable in release build.

Added: 
    

Modified: 
    llvm/lib/Analysis/ValueTracking.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 220ef32c2d3ce9..92c9162a1f8f0f 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -4279,9 +4279,8 @@ static KnownFPClass computeKnownFPClassFromContext(const Value *V,
     if (!AssumeVH)
       continue;
     CallInst *I = cast<CallInst>(AssumeVH);
-    const Function *F = I->getFunction();
 
-    assert(F == Q.CxtI->getParent()->getParent() &&
+    assert(I->getFunction() == Q.CxtI->getParent()->getParent() &&
            "Got assumption for the wrong function!");
     assert(I->getCalledFunction()->getIntrinsicID() == Intrinsic::assume &&
            "must be an assume intrinsic");


        


More information about the llvm-commits mailing list