[X86] Remove unused SmallString. Fold a Twine local variable into call. NFC
authorCraig Topper <craig.topper@sifive.com>
Wed, 26 Apr 2023 05:33:58 +0000 (22:33 -0700)
committerCraig Topper <craig.topper@sifive.com>
Wed, 26 Apr 2023 05:33:58 +0000 (22:33 -0700)
llvm/lib/Target/X86/X86PreTileConfig.cpp

index 7fe4c88b79f7d6624c19efa4dcae1dfda279ac55..a382db493fd4ae93583f856e2c48c143b5d3ccf5 100644 (file)
@@ -43,12 +43,10 @@ using namespace llvm;
 #define DEBUG_TYPE "tile-pre-config"
 
 static void emitErrorMsg(MachineFunction &MF) {
-  SmallString<32> Str;
-  Twine ErrorMsg =
-      MF.getName() +
-      ": Failed to config tile register, please define the shape earlier";
   LLVMContext &Context = MF.getMMI().getModule()->getContext();
-  Context.emitError(ErrorMsg);
+  Context.emitError(
+      MF.getName() +
+      ": Failed to config tile register, please define the shape earlier");
 }
 
 namespace {