[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
Please register or sign in to comment