diff options
author | Fangrui Song <i@maskray.me> | 2024-02-08 10:56:00 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2024-02-08 10:56:00 -0800 |
commit | a1ed821b49d9a189c3a0a11228c0de517020feca (patch) | |
tree | 50f5d0c7765e479932e5c834106f452997e92946 /llvm/lib/IR/Function.cpp | |
parent | ab4a793e8bc78f50f9f104c9c732e2dd91bf70a2 (diff) | |
download | llvm-a1ed821b49d9a189c3a0a11228c0de517020feca.zip llvm-a1ed821b49d9a189c3a0a11228c0de517020feca.tar.gz llvm-a1ed821b49d9a189c3a0a11228c0de517020feca.tar.bz2 |
[TableGen] Simplify prepSkipToLineEnd for preprocessing
The MemoryBuffer is created using `RequiresNullTerminator`, so we can
safely skip the `CurPtr != CurBuf.end()` check. The redundant check
causes a cppcheck report. In addition, elsewhere, including `*CurPtr ==
'#'` below, makes the null terminator assumption as well.
Close #81120
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions