[llvm] [FileCheck] Handle CHECK-EMPTY at EOF without trailing newline (PR #196576)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri May 8 09:55:16 PDT 2026
MaskRay wrote:
There is indeed an assertion
```
FileCheck: /home/ray/llvm/llvm/lib/FileCheck/FileCheck.cpp:1908: bool llvm::FileCheck::readCheckFile(SourceMgr &, StringRef, std::pair<unsigned int, unsigned int> *): Assertion `AfterSuffix.data() >= Buffer.data() && AfterSuffix.data() < Buffer.data() + Buffer.size() && "Parsing after
suffix doesn't start inside of buffer!"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0. Program arguments: /tmp/Debug/bin/FileCheck no-newline
#0 0x0000769ea04b1c6d llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/ray/llvm/llvm/lib/Support/Unix/Signals.inc:880:11
fish: Job 1, '/tmp/Debug/bin/FileCheck $argv' terminated by signal SIGABRT (Abort)
```
https://github.com/llvm/llvm-project/pull/196576
More information about the llvm-commits
mailing list