diff options
author | Timm Bäder <tbaeder@redhat.com> | 2024-06-06 15:35:02 +0200 |
---|---|---|
committer | Timm Bäder <tbaeder@redhat.com> | 2024-06-06 16:34:22 +0200 |
commit | 083a26682d1c4d2d6efb051cb2f658564eaa32ff (patch) | |
tree | d05eb3c4ca33e57584904e0240d52d04630c9305 /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | b7b8d028962e7a7280e3d65019345f2446785e7e (diff) | |
download | llvm-083a26682d1c4d2d6efb051cb2f658564eaa32ff.zip llvm-083a26682d1c4d2d6efb051cb2f658564eaa32ff.tar.gz llvm-083a26682d1c4d2d6efb051cb2f658564eaa32ff.tar.bz2 |
[clang][Interp][NFC] Return a valid SourceInfo for Function PCs
We already assert that the given PC is in range and that the
function has a body, so the SrcMap should generally never be empty.
However, when generating destructors, we create quite a few instructions
for which we have no source information, which may cause the previous
assertion to fail. Return the end of the source map in this case.
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions