Skip to content

Commit 281514a

Browse files
ElvisWang123lukel97
authored andcommitted
!fixup, Add description of the assertion.
1 parent 9fcb505 commit 281514a

File tree

1 file changed

+2
-1
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,8 @@ class VPRecipeWithIRFlags : public VPSingleDefRecipe {
790790

791791
/// Set fast-math flags for this recipe.
792792
void setFastMathFlags(FastMathFlags FMFs) {
793-
assert(OpType == OperationType::FPMathOp);
793+
assert(OpType == OperationType::FPMathOp &&
794+
"We should only set the FastMathFlags when the recipes is FPFathOP");
794795
this->FMFs = FMFs;
795796
}
796797

0 commit comments

Comments
 (0)