[NFCI][SROA] `rewriteSelectInstLoads()`: add forgotten false into assertion
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 8 Dec 2022 16:40:35 +0000 (19:40 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 8 Dec 2022 16:40:35 +0000 (19:40 +0300)
llvm/lib/Transforms/Scalar/SROA.cpp

index 07bcddc..5c8ba6d 100644 (file)
@@ -1484,7 +1484,7 @@ static bool rewriteSelectInstLoads(SelectInst &SI,
     if (Spec.areAllSpeculatable()) {
       speculateSelectInstLoads(SI, *LI, IRB);
     } else {
-      assert("Should not get here when not allowed to modify the CFG!");
+      assert(false && "Should not get here when not allowed to modify the CFG");
       rewriteLoadOfSelect(SI, *LI, Spec, *DTU);
       CFGChanged = true;
     }