From 4f90f4ada33718f9025d0870a4fe3fe88276b3da Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Thu, 8 Dec 2022 19:40:35 +0300 Subject: [PATCH] [NFCI][SROA] `rewriteSelectInstLoads()`: add forgotten false into assertion --- llvm/lib/Transforms/Scalar/SROA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/SROA.cpp b/llvm/lib/Transforms/Scalar/SROA.cpp index 07bcddc..5c8ba6d 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; } -- 2.7.4