Skip to content

Commit 9432e60

Browse files
committed
Attempt to fix Windows build issue with getExitBlocks
1 parent cfc3c62 commit 9432e60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,8 @@ void VPlan::prepareToExecute(Value *TripCountV, Value *VectorTripCountV,
958958

959959
bool VPlan::isExitBlock(VPBlockBase *VPBB) {
960960
if (isa<VPIRBasicBlock>(VPBB) && VPBB->getNumSuccessors() == 0) {
961-
assert(is_contained(getExitBlocks(), VPBB) &&
961+
[[maybe_unused]] auto ExitBlocks = getExitBlocks();
962+
assert(is_contained(ExitBlocks, VPBB) &&
962963
"Expected to find VPlan block in list of exit blocks!");
963964
return true;
964965
}

0 commit comments

Comments
 (0)