[llvm] 07146a9 - [SCCP] Fix typo in previous commit

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 07:24:02 PDT 2022


Author: Nikita Popov
Date: 2022-07-13T16:22:40+02:00
New Revision: 07146a9e647918ef1ea5fec494b6c7c2a4206037

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

LOG: [SCCP] Fix typo in previous commit

Ooops, I tested a build from the wrong checkout.

Added: 
    

Modified: 
    llvm/lib/Transforms/Utils/SCCPSolver.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Utils/SCCPSolver.cpp b/llvm/lib/Transforms/Utils/SCCPSolver.cpp
index 241e054cbf30..871ce69ef024 100644
--- a/llvm/lib/Transforms/Utils/SCCPSolver.cpp
+++ b/llvm/lib/Transforms/Utils/SCCPSolver.cpp
@@ -961,7 +961,7 @@ void SCCPInstVisitor::visitUnaryOperator(Instruction &I) {
 
   if (isConstant(V0State)) {
     if (Constant *C = ConstantFoldUnaryOpOperand(I.getOpcode(),
-                                                 getConstant(V0State, DL))) {
+                                                 getConstant(V0State), DL)) {
       // op Y -> undef.
       if (isa<UndefValue>(C))
         return;


        


More information about the llvm-commits mailing list