Remove the newline from the mlir-opt 'split-input-file' flag marker. This fixes...
authorRiver Riddle <riverriddle@google.com>
Fri, 31 May 2019 16:27:52 +0000 (09:27 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:12:11 +0000 (20:12 -0700)
--

PiperOrigin-RevId: 250899420

mlir/tools/mlir-opt/mlir-opt.cpp

index 7b6e917..a27d2d0 100644 (file)
@@ -144,7 +144,7 @@ static OptResult processFile(std::unique_ptr<MemoryBuffer> ownedBuffer) {
 /// single test, but could be used for other purposes as well.
 static OptResult
 splitAndProcessFile(std::unique_ptr<MemoryBuffer> originalBuffer) {
-  const char marker[] = "// -----\n";
+  const char marker[] = "// -----";
   auto *origMemBuffer = originalBuffer.get();
   SmallVector<StringRef, 8> sourceBuffers;
   origMemBuffer->getBuffer().split(sourceBuffers, marker);