[OpenMP] Fix save-temps name in linker wrapper

Summary:
The wrapped registration code had a typo in the save-temps version of
the name.
This commit is contained in:
Joseph Huber 2022-05-03 20:50:26 -04:00
parent dbe716e874
commit 46a5a8029e
1 changed files with 2 additions and 3 deletions

View File

@ -1185,9 +1185,8 @@ Expected<std::string> compileModule(Module &M) {
SmallString<128> ObjectFile;
int FD = -1;
if (Error Err = createOutputFile(sys::path::filename(ExecutableName) +
"offload-wrapper",
"o", ObjectFile))
if (Error Err = createOutputFile(
sys::path::filename(ExecutableName) + "-wrapper", "o", ObjectFile))
return std::move(Err);
if (std::error_code EC = sys::fs::openFileForWrite(ObjectFile, FD))
return errorCodeToError(EC);