[OpenMP] Fix incompatible attributes in OpenMPIRBuilder test.
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 13 Apr 2021 15:23:16 +0000 (11:23 -0400)
committerHuber, Joseph <huberjn@ornl.gov>
Tue, 13 Apr 2021 15:57:28 +0000 (11:57 -0400)
commitf047cb45bd3837d39b0a1bb4262c805ddd4cf1cb
tree48e0e35f6308a1a5fd949cc66da14f88ce551d4b
parent01ddfa95bd14b35c5706cc5d69fe64b4b60526e3
[OpenMP] Fix incompatible attributes in OpenMPIRBuilder test.

Summary:
After D98740 the function attributes were changes to append rather than
overwrite when using the values defined in OMPKinds.def. One of the
OpenMPIRBuilder tests erroenously used `readnone` instead of `readonly` which
would cause a conflict and result in a broken module once `readonly` was
appended to it. This patch fixes the test to use the correct attributes.
llvm/test/Transforms/OpenMP/gpu_state_machine_function_ptr_replacement.ll