[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 7fe4c88..a382db4 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 {