[llvm] 4f90f4a - [NFCI][SROA] `rewriteSelectInstLoads()`: add forgotten false into assertion
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 08:41:16 PST 2022
Author: Roman Lebedev
Date: 2022-12-08T19:40:35+03:00
New Revision: 4f90f4ada33718f9025d0870a4fe3fe88276b3da
URL: https://github.com/llvm/llvm-project/commit/4f90f4ada33718f9025d0870a4fe3fe88276b3da
DIFF: https://github.com/llvm/llvm-project/commit/4f90f4ada33718f9025d0870a4fe3fe88276b3da.diff
LOG: [NFCI][SROA] `rewriteSelectInstLoads()`: add forgotten false into assertion
Added:
Modified:
llvm/lib/Transforms/Scalar/SROA.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/SROA.cpp b/llvm/lib/Transforms/Scalar/SROA.cpp
index 07bcddc3ab6e4..5c8ba6de0929f 100644
--- a/llvm/lib/Transforms/Scalar/SROA.cpp
+++ b/llvm/lib/Transforms/Scalar/SROA.cpp
@@ -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;
}
More information about the llvm-commits
mailing list