summaryrefslogtreecommitdiff
path: root/mlir/lib/Support
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Support')
-rw-r--r--mlir/lib/Support/ToolUtilities.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/mlir/lib/Support/ToolUtilities.cpp b/mlir/lib/Support/ToolUtilities.cpp
index 26a8b08f75af..ef1a41114fe9 100644
--- a/mlir/lib/Support/ToolUtilities.cpp
+++ b/mlir/lib/Support/ToolUtilities.cpp
@@ -37,8 +37,9 @@ mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer> originalBuffer,
auto splitLoc = llvm::SMLoc::getFromPointer(subBuffer.data());
unsigned splitLine = fileSourceMgr.getLineAndColumn(splitLoc).first;
auto subMemBuffer = llvm::MemoryBuffer::getMemBufferCopy(
- subBuffer, origMemBuffer->getBufferIdentifier() +
- Twine(" split at line #") + Twine(splitLine));
+ subBuffer, Twine("within split at ") +
+ origMemBuffer->getBufferIdentifier() + ":" +
+ Twine(splitLine) + " offset ");
if (failed(processChunkBuffer(std::move(subMemBuffer), os)))
hadFailure = true;
}