diff options
author | Serge Pavlov <sepavloff@gmail.com> | 2022-07-01 15:32:56 +0700 |
---|---|---|
committer | Serge Pavlov <sepavloff@gmail.com> | 2022-07-01 15:42:39 +0700 |
commit | dc34d8df4c48b3a8f474360970cae8a58e6c84f0 (patch) | |
tree | 37e72093471f6cee0fef1fc6c2d1506097038fc1 /clang/lib/Sema/SemaOpenMP.cpp | |
parent | 0dd4fb0408ed980de2c100905e68a4adf9987c61 (diff) | |
download | llvm-dc34d8df4c48b3a8f474360970cae8a58e6c84f0.zip llvm-dc34d8df4c48b3a8f474360970cae8a58e6c84f0.tar.gz llvm-dc34d8df4c48b3a8f474360970cae8a58e6c84f0.tar.bz2 |
Revert "[FPEnv] Allow CompoundStmt to keep FP options"
On some buildbots test `ast-print-fp-pragmas.c` fails, need to investigate it.
This reverts commit 0401fd12d4aa0553347fe34d666fb236d8719173.
This reverts commit b822efc7404bf09ccfdc1ab7657475026966c3b2.
Diffstat (limited to 'clang/lib/Sema/SemaOpenMP.cpp')
-rw-r--r-- | clang/lib/Sema/SemaOpenMP.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index e4e9858..262f1ab 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/lib/Sema/SemaOpenMP.cpp @@ -14454,8 +14454,8 @@ StmtResult Sema::ActOnOpenMPTileDirective(ArrayRef<OMPClause *> Clauses, SmallVector<Stmt *, 4> BodyParts; BodyParts.append(LoopHelper.Updates.begin(), LoopHelper.Updates.end()); BodyParts.push_back(Inner); - Inner = CompoundStmt::Create(Context, BodyParts, FPOptionsOverride(), - Inner->getBeginLoc(), Inner->getEndLoc()); + Inner = CompoundStmt::Create(Context, BodyParts, Inner->getBeginLoc(), + Inner->getEndLoc()); Inner = new (Context) ForStmt(Context, InitStmt.get(), CondExpr.get(), nullptr, IncrStmt.get(), Inner, LoopHelper.Init->getBeginLoc(), @@ -14729,9 +14729,8 @@ StmtResult Sema::ActOnOpenMPUnrollDirective(ArrayRef<OMPClause *> Clauses, SmallVector<Stmt *> InnerBodyStmts; InnerBodyStmts.append(LoopHelper.Updates.begin(), LoopHelper.Updates.end()); InnerBodyStmts.push_back(Body); - CompoundStmt *InnerBody = - CompoundStmt::Create(Context, InnerBodyStmts, FPOptionsOverride(), - Body->getBeginLoc(), Body->getEndLoc()); + CompoundStmt *InnerBody = CompoundStmt::Create( + Context, InnerBodyStmts, Body->getBeginLoc(), Body->getEndLoc()); ForStmt *InnerFor = new (Context) ForStmt(Context, InnerInit.get(), InnerCond.get(), nullptr, InnerIncr.get(), InnerBody, LoopHelper.Init->getBeginLoc(), |