Apply clang-tidy fixes for llvm-twine-local in OpenMPToLLVMIRTranslation.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-04-16 08:21:24 +00:00
parent a57d16bf80
commit 8608ed1441
1 changed files with 1 additions and 1 deletions

View File

@ -1286,7 +1286,7 @@ convertOmpThreadprivate(Operation &opInst, llvm::IRBuilderBase &builder,
type);
llvm::ConstantInt *size = builder.getInt64(typeSize.getFixedSize());
llvm::StringRef suffix = llvm::StringRef(".cache", 6);
llvm::Twine cacheName = Twine(global.getSymName()).concat(suffix);
std::string cacheName = (Twine(global.getSymName()).concat(suffix)).str();
// Emit runtime function and bitcast its type (i8*) to real data type.
llvm::Value *callInst =
moduleTranslation.getOpenMPBuilder()->createCachedThreadPrivate(