[llvm] 7b6e49a - Fixed a -Wunused-variable warning in no-assertion builds

Dmitri Gribenko via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 3 02:49:44 PST 2020


Author: Dmitri Gribenko
Date: 2020-02-03T11:49:11+01:00
New Revision: 7b6e49a2f022288f010bc600323f1d0aafca6241

URL: https://github.com/llvm/llvm-project/commit/7b6e49a2f022288f010bc600323f1d0aafca6241
DIFF: https://github.com/llvm/llvm-project/commit/7b6e49a2f022288f010bc600323f1d0aafca6241.diff

LOG: Fixed a -Wunused-variable warning in no-assertion builds

Added: 
    

Modified: 
    llvm/lib/Frontend/OpenMP/OMPContext.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Frontend/OpenMP/OMPContext.cpp b/llvm/lib/Frontend/OpenMP/OMPContext.cpp
index 312589a88aa5..61981a059f88 100644
--- a/llvm/lib/Frontend/OpenMP/OMPContext.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPContext.cpp
@@ -234,6 +234,7 @@ static APInt getVariantMatchScore(const VariantMatchInfo &VMI,
     assert(getOpenMPContextTraitSetForProperty(Property) ==
                TraitSet::construct &&
            "Ill-formed variant match info!");
+    (void)Property;
     // ConstructMatches is the position p - 1 and we need 2^(p-1).
     Score += (1 << ConstructMatches[ConstructIdx++]);
   }


        


More information about the llvm-commits mailing list