[all-commits] [llvm/llvm-project] 083a26: [clang][Interp][NFC] Return a valid SourceInfo for...
Timm Baeder via All-commits
all-commits at lists.llvm.org
Thu Jun 6 07:35:12 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 083a26682d1c4d2d6efb051cb2f658564eaa32ff
https://github.com/llvm/llvm-project/commit/083a26682d1c4d2d6efb051cb2f658564eaa32ff
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2024-06-06 (Thu, 06 Jun 2024)
Changed paths:
M clang/lib/AST/Interp/Function.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list