Skip to content

Commit 476a6d8

Browse files
[NFC] Construct Twines before concatenation (#90728)
Construct `Twine`s before concatenation.
1 parent 4e0bd3f commit 476a6d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Driver/ToolChains/HIPUtility.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ class HIPUndefinedFatBinSymbols {
106106
std::string ID = IA->getId().str();
107107
if (!ID.empty()) {
108108
ID = llvm::utohexstr(llvm::MD5Hash(ID), /*LowerCase=*/true);
109-
FatBinSymbols.insert(Twine(FatBinPrefix + "_" + ID).str());
109+
FatBinSymbols.insert((FatBinPrefix + Twine('_') + ID).str());
110110
GPUBinHandleSymbols.insert(
111-
Twine(GPUBinHandlePrefix + "_" + ID).str());
111+
(GPUBinHandlePrefix + Twine('_') + ID).str());
112112
continue;
113113
}
114114
if (IA->getInputArg().getNumValues() == 0)

0 commit comments

Comments
 (0)