Skip to content

Commit ce7af67

Browse files
committed
Add assert to OpenMPIRBuilder::createReductions
1 parent bb958cd commit ce7af67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2126,6 +2126,7 @@ OpenMPIRBuilder::createReductions(const LocationDescription &Loc,
21262126
InsertPointTy AllocaIP,
21272127
ArrayRef<ReductionInfo> ReductionInfos,
21282128
ArrayRef<bool> IsByRef, bool IsNoWait) {
2129+
assert(ReductionInfos.size() == IsByRef.size());
21292130
for (const ReductionInfo &RI : ReductionInfos) {
21302131
(void)RI;
21312132
assert(RI.Variable && "expected non-null variable");

0 commit comments

Comments
 (0)