r308773 - [OPENMP] Fix build problem, NFC.
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 21 12:26:22 PDT 2017
Author: abataev
Date: Fri Jul 21 12:26:22 2017
New Revision: 308773
URL: http://llvm.org/viewvc/llvm-project?rev=308773&view=rev
Log:
[OPENMP] Fix build problem, NFC.
Modified:
cfe/trunk/lib/Sema/SemaOpenMP.cpp
Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOpenMP.cpp?rev=308773&r1=308772&r2=308773&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOpenMP.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOpenMP.cpp Fri Jul 21 12:26:22 2017
@@ -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
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;
More information about the cfe-commits
mailing list