Skip to content

Commit 9a0a9f3

Browse files
committed
fix lit test
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 5a93fdf commit 9a0a9f3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

clang/lib/Driver/ToolChains/SPIRVOpenMP.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ void SPIRVOpenMPToolChain::addClangTargetOptions(
2929

3030
if (DriverArgs.hasArg(options::OPT_nogpulib))
3131
return;
32-
Twine GpuArch = getTriple().getArchName() + "-" + getTriple().getVendorName();
33-
addOpenMPDeviceRTL(getDriver(), DriverArgs, CC1Args, GpuArch.str(),
34-
getTriple(), HostTC);
32+
std::string GpuArch =
33+
Twine(getTriple().getArchName() + "-" + getTriple().getVendorName())
34+
.str();
35+
addOpenMPDeviceRTL(getDriver(), DriverArgs, CC1Args, GpuArch, getTriple(),
36+
HostTC);
3537
}
3638
} // namespace clang::driver::toolchains

0 commit comments

Comments
 (0)