From: Alexey Bataev Date: Fri, 21 Jul 2017 19:26:22 +0000 (+0000) Subject: [OPENMP] Fix build problem, NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ba1c33330d6b933da568b157349eaef54f12e99;p=clang [OPENMP] Fix build problem, NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308773 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOpenMP.cpp b/lib/Sema/SemaOpenMP.cpp index 1eb2ec45db..f31581a618 100644 --- a/lib/Sema/SemaOpenMP.cpp +++ b/lib/Sema/SemaOpenMP.cpp @@ -86,10 +86,9 @@ private: typedef llvm::DenseMap DoacrossDependMapTy; struct ReductionData { + typedef llvm::PointerEmbeddedInt BOKPtrType; SourceRange ReductionRange; - llvm::PointerUnion> - ReductionOp; + llvm::PointerUnion 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()) return false; SR = ReductionData.ReductionRange; - BOK = ReductionData.ReductionOp - .get>(); + BOK = ReductionData.ReductionOp.get(); return true; } return false;