Add a missing space in a MIR parser error message
authorDavid Stenberg <david.stenberg@ericsson.com>
Fri, 20 Sep 2019 14:41:41 +0000 (14:41 +0000)
committerDavid Stenberg <david.stenberg@ericsson.com>
Fri, 20 Sep 2019 14:41:41 +0000 (14:41 +0000)
llvm-svn: 372398

llvm/lib/CodeGen/MIRParser/MIRParser.cpp
llvm/test/CodeGen/MIR/X86/call-site-info-error2.mir

index 72d3d1d..5f5b6eb 100644 (file)
@@ -355,7 +355,7 @@ bool MIRParserImpl::initializeCallSiteInfo(
     if (MILoc.Offset >= CallB->size())
       return error(Twine(MF.getName()) +
                    Twine(" call instruction offset out of range.") +
-                   "Unable to reference instruction at bb: " +
+                   " Unable to reference instruction at bb: " +
                    Twine(MILoc.BlockNum) + " at offset:" + Twine(MILoc.Offset));
     auto CallI = std::next(CallB->instr_begin(), MILoc.Offset);
     if (!CallI->isCall(MachineInstr::IgnoreBundle))
index 1d65b3e..bd5b245 100644 (file)
@@ -1,5 +1,5 @@
 # RUN: not llc -mtriple=x86_64-- -run-pass none -debug-entry-values %s -o - 2>&1 | FileCheck %s
-# CHECK: baa call instruction offset out of range.Unable to reference instruction at bb: 0 at offset:1
+# CHECK: baa call instruction offset out of range. Unable to reference instruction at bb: 0 at offset:1
 --- |
   define dso_local i32 @baa(i32 %a) local_unnamed_addr {
   entry: