aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorPushpinder Singh <Pushpinder.Singh@amd.com>2021-02-23 07:43:57 -0500
committerPushpinder Singh <Pushpinder.Singh@amd.com>2021-02-25 00:50:51 -0500
commit99951aa68da3c85ba03edf977cd9b22458aae6ca (patch)
tree57cc0481795a48baf1ccbf82e3354fc923134b5c /clang/lib/CodeGen/CodeGenAction.cpp
parent159f78fc2f50e385e7cd529d41e19c858ef3e10e (diff)
downloadllvm-99951aa68da3c85ba03edf977cd9b22458aae6ca.zip
llvm-99951aa68da3c85ba03edf977cd9b22458aae6ca.tar.gz
llvm-99951aa68da3c85ba03edf977cd9b22458aae6ca.tar.bz2
OpenMP: Fix object clobbering issue when using save-temps
There are two preconditions to reproduce the issue, 1. Use -save-temps option 2. Provide the -o option with name equal to the input file name without the file extension. For e.g. clang a.c -o a With the -o specified, the AssembleJobAction after OffloadWrapperJobAction will produce the object file with same name as host code object file. Due to this clash, the OffloadWrapperAction overwrites the initial host object file, which results in lld error. This also fixes the `multiple definition of __dummy.omp_offloading.entry'` issue in D96769 . Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D97273
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions