diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2023-10-23 14:29:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-23 14:29:00 +0200 |
commit | 324d1bb35aefec737ef381d98211f7771c4b0ab5 (patch) | |
tree | b59152850721faadf1a87a39694be05641a052a4 /llvm/lib/Analysis/BasicAliasAnalysis.cpp | |
parent | 89eeb4f03d86f1411c21c18744d8d80effdcaef8 (diff) | |
download | llvm-324d1bb35aefec737ef381d98211f7771c4b0ab5.zip llvm-324d1bb35aefec737ef381d98211f7771c4b0ab5.tar.gz llvm-324d1bb35aefec737ef381d98211f7771c4b0ab5.tar.bz2 |
[Clang] Report an error and crash on source location exhaustion in macros (#69908)
`createExpansionLocImpl` has an assert that checks if we ran out of
source locations. We have observed this happening on real code and in
release builds the assertion does not fire and the compiler just keeps
running indefinitely without giving any indication that something went
wrong.
Diagnose this problem and reliably crash to make sure the problem is
easy to detect.
I have also tried:
- returning invalid source locations,
- reporting sloc address space usage on error.
Both caused the compiler to run indefinitely. It would be nice to dig
further why that happens, but until then crashing seems like a better
alternative.
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions