From: Roman Lebedev Date: Thu, 8 Dec 2022 16:40:35 +0000 (+0300) Subject: [NFCI][SROA] `rewriteSelectInstLoads()`: add forgotten false into assertion X-Git-Tag: upstream/17.0.6~24668 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f90f4ada33718f9025d0870a4fe3fe88276b3da;p=platform%2Fupstream%2Fllvm.git [NFCI][SROA] `rewriteSelectInstLoads()`: add forgotten false into assertion --- 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; }