[OPENMP] Fix build problem, NFC.
llvm-svn: 308773
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 1eb2ec4..f31581a6 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -86,10 +86,9 @@
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 @@
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;