Commit 083a2668 authored by Timm Bäder's avatar Timm Bäder
Browse files

[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.
parent b7b8d028
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment