]> granicus.if.org Git - clang/commitdiff
[OPENMP] Fix build problem, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 21 Jul 2017 19:26:22 +0000 (19:26 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 21 Jul 2017 19:26:22 +0000 (19:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308773 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOpenMP.cpp

index 1eb2ec45dbe591e6516f04c9ff493d7cad472b8e..f31581a61891c531f7b643cff86d0dc9f88139e1 100644 (file)
@@ -86,10 +86,9 @@ private:
   typedef llvm::DenseMap<OMPDependClause *, OperatorOffsetTy>
       DoacrossDependMapTy;
   struct ReductionData {
+    typedef llvm::PointerEmbeddedInt<BinaryOperatorKind, 16> BOKPtrType;
     SourceRange ReductionRange;
-    llvm::PointerUnion<const Expr *,
-                       llvm::PointerEmbeddedInt<BinaryOperatorKind>>
-        ReductionOp;
+    llvm::PointerUnion<const Expr *, BOKPtrType> ReductionOp;
     ReductionData() = default;
     void set(BinaryOperatorKind BO, SourceRange RR) {
       ReductionRange = RR;
@@ -788,8 +787,7 @@ bool DSAStackTy::getTopMostReductionData(ValueDecl *D, SourceRange &SR,
         ReductionData.ReductionOp.is<const Expr *>())
       return false;
     SR = ReductionData.ReductionRange;
-    BOK = ReductionData.ReductionOp
-              .get<llvm::PointerEmbeddedInt<BinaryOperatorKind>>();
+    BOK = ReductionData.ReductionOp.get<ReductionData::BOKPtrType>();
     return true;
   }
   return false;