Add a missing space in a MIR parser error message

llvm-svn: 372398
This commit is contained in:
David Stenberg 2019-09-20 14:41:41 +00:00
parent 927699490a
commit b71d8d465a
2 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@ bool MIRParserImpl::initializeCallSiteInfo(
if (MILoc.Offset >= CallB->size()) if (MILoc.Offset >= CallB->size())
return error(Twine(MF.getName()) + return error(Twine(MF.getName()) +
Twine(" call instruction offset out of range.") + 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)); Twine(MILoc.BlockNum) + " at offset:" + Twine(MILoc.Offset));
auto CallI = std::next(CallB->instr_begin(), MILoc.Offset); auto CallI = std::next(CallB->instr_begin(), MILoc.Offset);
if (!CallI->isCall(MachineInstr::IgnoreBundle)) if (!CallI->isCall(MachineInstr::IgnoreBundle))

View File

@ -1,5 +1,5 @@
# RUN: not llc -mtriple=x86_64-- -run-pass none -debug-entry-values %s -o - 2>&1 | FileCheck %s # 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 { define dso_local i32 @baa(i32 %a) local_unnamed_addr {
entry: entry: