diff options
author | Jacob Lambert <39344363+lamb-j@users.noreply.github.com> | 2023-11-01 10:05:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-01 10:05:11 -0700 |
commit | 2b898afdef7c8f40e74af9379a1cc7cf372ecb65 (patch) | |
tree | 151ec013dbcde0f59b50f9e8b6fc2f2a092e384c /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b19c40c579dbfeb4c5615fb96316492c67f64edc (diff) | |
download | llvm-2b898afdef7c8f40e74af9379a1cc7cf372ecb65.zip llvm-2b898afdef7c8f40e74af9379a1cc7cf372ecb65.tar.gz llvm-2b898afdef7c8f40e74af9379a1cc7cf372ecb65.tar.bz2 |
[llvm] Add comment and assert for CloneModule edge case (#67734)
CloneModule is not currently designed to handle un-materialized Modules,
for example one created via a lazy initializer like
getLazyBitcodeModule(). In this case we get a somewhat cryptic
segmentation fault without a clear path forward.
In this patch, we add a comment to inform CloneModule users of this
shortcoming, and an assert to test for empty function bodies before the
segmentation fault is triggered.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions