[llvm] d24d244 - [SelectionDAG] Fix typo in assert. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri May 28 10:37:20 PDT 2021


Author: Craig Topper
Date: 2021-05-28T10:37:11-07:00
New Revision: d24d2447cd228330d233f8e7710f11a802eaf681

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

LOG: [SelectionDAG] Fix typo in assert. NFC

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index d483fa6ee882..9c1cb2654626 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -5214,7 +5214,7 @@ SDValue SelectionDAG::FoldConstantArithmetic(unsigned Opcode, const SDLoc &DL,
   // Scalable vectors should only be SPLAT_VECTOR or UNDEF here. We only need
   // one iteration for that.
   assert((!VT.isScalableVector() || NumOps == 1) &&
-         "Scalar vector should only have one scalar");
+         "Scalable vector should only have one scalar");
 
   for (unsigned I = 0; I != NumOps; ++I) {
     // We can have a fixed length SPLAT_VECTOR and a BUILD_VECTOR so we need


        


More information about the llvm-commits mailing list