aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJacob Lambert <39344363+lamb-j@users.noreply.github.com>2023-11-01 10:05:11 -0700
committerGitHub <noreply@github.com>2023-11-01 10:05:11 -0700
commit2b898afdef7c8f40e74af9379a1cc7cf372ecb65 (patch)
tree151ec013dbcde0f59b50f9e8b6fc2f2a092e384c /clang/lib/Frontend/CompilerInvocation.cpp
parentb19c40c579dbfeb4c5615fb96316492c67f64edc (diff)
downloadllvm-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