[LV] Fix signed/unsigned comparison warning.
authorMichael Kruse <llvm@meinersbur.de>
Wed, 12 Dec 2018 18:07:19 +0000 (18:07 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Wed, 12 Dec 2018 18:07:19 +0000 (18:07 +0000)
llvm-svn: 348949

llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h

index aa4e474..124a456 100644 (file)
@@ -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;
   }