@@ -7835,15 +7835,15 @@ void ASTRecordWriter::writeOpenACCClause(const OpenACCClause *C) {
7835
7835
case OpenACCClauseKind::If: {
7836
7836
const auto *IC = cast<OpenACCIfClause>(C);
7837
7837
writeSourceLocation (IC->getLParenLoc ());
7838
- writeStmtRef ( IC->getConditionExpr ());
7838
+ AddStmt ( const_cast <Expr*>( IC->getConditionExpr () ));
7839
7839
return ;
7840
7840
}
7841
7841
case OpenACCClauseKind::Self: {
7842
7842
const auto *SC = cast<OpenACCSelfClause>(C);
7843
7843
writeSourceLocation (SC->getLParenLoc ());
7844
7844
writeBool (SC->hasConditionExpr ());
7845
7845
if (SC->hasConditionExpr ())
7846
- writeStmtRef ( SC->getConditionExpr ());
7846
+ AddStmt ( const_cast <Expr*>( SC->getConditionExpr () ));
7847
7847
return ;
7848
7848
}
7849
7849
case OpenACCClauseKind::NumGangs: {
@@ -7857,13 +7857,13 @@ void ASTRecordWriter::writeOpenACCClause(const OpenACCClause *C) {
7857
7857
case OpenACCClauseKind::NumWorkers: {
7858
7858
const auto *NWC = cast<OpenACCNumWorkersClause>(C);
7859
7859
writeSourceLocation (NWC->getLParenLoc ());
7860
- writeStmtRef ( NWC->getIntExpr ());
7860
+ AddStmt ( const_cast <Expr*>( NWC->getIntExpr () ));
7861
7861
return ;
7862
7862
}
7863
7863
case OpenACCClauseKind::VectorLength: {
7864
7864
const auto *NWC = cast<OpenACCVectorLengthClause>(C);
7865
7865
writeSourceLocation (NWC->getLParenLoc ());
7866
- writeStmtRef ( NWC->getIntExpr ());
7866
+ AddStmt ( const_cast <Expr*>( NWC->getIntExpr () ));
7867
7867
return ;
7868
7868
}
7869
7869
case OpenACCClauseKind::Private: {
@@ -7942,15 +7942,15 @@ void ASTRecordWriter::writeOpenACCClause(const OpenACCClause *C) {
7942
7942
writeSourceLocation (AC->getLParenLoc ());
7943
7943
writeBool (AC->hasIntExpr ());
7944
7944
if (AC->hasIntExpr ())
7945
- writeStmtRef ( AC->getIntExpr ());
7945
+ AddStmt ( const_cast <Expr*>( AC->getIntExpr () ));
7946
7946
return ;
7947
7947
}
7948
7948
case OpenACCClauseKind::Wait: {
7949
7949
const auto *WC = cast<OpenACCWaitClause>(C);
7950
7950
writeSourceLocation (WC->getLParenLoc ());
7951
7951
writeBool (WC->getDevNumExpr ());
7952
- if (const Expr *DNE = WC->getDevNumExpr ())
7953
- writeStmtRef (DNE);
7952
+ if (Expr *DNE = WC->getDevNumExpr ())
7953
+ AddStmt (DNE);
7954
7954
writeSourceLocation (WC->getQueuesLoc ());
7955
7955
7956
7956
writeOpenACCIntExprList (WC->getQueueIdExprs ());
0 commit comments