diff --git a/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h b/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h index aa4e47450f2..124a4560802 100644 --- a/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h +++ b/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h @@ -114,7 +114,8 @@ public: unsigned getInterleave() const { return Interleave.Value; } unsigned getIsVectorized() const { return IsVectorized.Value; } enum ForceKind getForce() const { - if (Force.Value == FK_Undefined && hasDisableAllTransformsHint(TheLoop)) + if ((ForceKind)Force.Value == FK_Undefined && + hasDisableAllTransformsHint(TheLoop)) return FK_Disabled; return (ForceKind)Force.Value; }