[llvm] 740da00 - [DAG] Fix static analyzer warning about mismatched argument comments in isConstOrConstSplat. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 4 07:03:16 PDT 2025


Author: Simon Pilgrim
Date: 2025-07-04T15:00:08+01:00
New Revision: 740da004af5ed402b6ddb0d71759f978bc814f7f

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

LOG: [DAG] Fix static analyzer warning about mismatched argument comments in isConstOrConstSplat. NFC.

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 586eb2f3cf45e..55f994f357b75 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -7518,7 +7518,7 @@ SDValue DAGCombiner::visitAND(SDNode *N) {
     // vector as a scalar and use the splat value.
     APInt Constant = APInt::getZero(1);
     if (const ConstantSDNode *C = isConstOrConstSplat(
-            N1, /*AllowUndef=*/false, /*AllowTruncation=*/true)) {
+            N1, /*AllowUndefs=*/false, /*AllowTruncation=*/true)) {
       Constant = C->getAPIntValue();
     } else if (BuildVectorSDNode *Vector = dyn_cast<BuildVectorSDNode>(N1)) {
       unsigned EltBitWidth = Vector->getValueType(0).getScalarSizeInBits();


        


More information about the llvm-commits mailing list