[llvm] r348949 - [LV] Fix signed/unsigned comparison warning.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 12 10:07:19 PST 2018


Author: meinersbur
Date: Wed Dec 12 10:07:19 2018
New Revision: 348949

URL: http://llvm.org/viewvc/llvm-project?rev=348949&view=rev
Log:
[LV] Fix signed/unsigned comparison warning.

Modified:
    llvm/trunk/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h

Modified: llvm/trunk/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h?rev=348949&r1=348948&r2=348949&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h (original)
+++ llvm/trunk/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h Wed Dec 12 10:07:19 2018
@@ -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;
   }




More information about the llvm-commits mailing list