diff options
| author | Daniil Kovalev <dkovalev@accesssoftek.com> | 2024-03-02 07:03:50 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-02 07:03:50 +0300 |
| commit | aab3d13179dc5a37465a0e6fbf1b9369a4e6e50f (patch) | |
| tree | 98576184cbca19eebfe8e99002b95e55a82457ed /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 07317bbc66d1f2d7663af3c9f04d0f6c0487ac03 (diff) | |
| download | llvm-aab3d13179dc5a37465a0e6fbf1b9369a4e6e50f.zip llvm-aab3d13179dc5a37465a0e6fbf1b9369a4e6e50f.tar.gz llvm-aab3d13179dc5a37465a0e6fbf1b9369a4e6e50f.tar.bz2 | |
[FileCheck] Fix parsing empty global and pseudo variable names (#82595)
In `Pattern::parseVariable`, for global variables (those starting with
'$') and for pseudo variables (those starting with '@') the first
character is consumed before actual variable name parsing. If the name
is empty, it leads to out-of-bound access to the corresponding
`StringRef`.
This patch adds an if statement against the case described.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
