Skip to content

Commit 9734853

Browse files
committed
Add llvm_unreachable
1 parent e481816 commit 9734853

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,8 @@ static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
11281128
m_VPValue(Y)))) {
11291129
R->setOperand(1, Y);
11301130
R->setOperand(2, X);
1131-
}
1131+
} else
1132+
llvm_unreachable("Unexpected user");
11321133
}
11331134
// If WideCmp doesn't have a debug location, use the one from the
11341135
// negation, to preserve the location.

0 commit comments

Comments
 (0)