[OpenMP] Fix: opposite attributes could be set by -fno-inline
authorIgor Kirillov <Igor.Kirillov@arm.com>
Wed, 27 Oct 2021 15:21:54 +0000 (16:21 +0100)
committerIgor Kirillov <Igor.Kirillov@arm.com>
Wed, 10 Nov 2021 16:48:09 +0000 (16:48 +0000)
commit4860f6cb25bd20b0fc2f20403602526df650d7ed
treefeec2136ccec19af58b6da96ea8deddfe2d837bb
parent976867b513abbf72e505506686219efaa7f3520f
[OpenMP] Fix: opposite attributes could be set by -fno-inline

After the changes introduced by D106799 it is possible to tag
outlined function with both AlwaysInline and NoInline attributes using
-fno-inline command line options.
This issue is similiar to D107649.

Differential Revision: https://reviews.llvm.org/D112645
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/parallel_if_codegen_PR51349.cpp