diff options
| author | Balazs Keri <1.int32@gmail.com> | 2019-08-06 12:10:16 +0000 |
|---|---|---|
| committer | Balazs Keri <1.int32@gmail.com> | 2019-08-06 12:10:16 +0000 |
| commit | 4e79097dc7c30ea8e1a7e96b740113e7cd9e635d (patch) | |
| tree | 176651a03cb1f9ccc2fb1df0bed6a69769eec257 /clang/test/Analysis/func-mapping-test.cpp | |
| parent | 56bdb0c5082547229ff668405bde2ef5254ee817 (diff) | |
| download | bcm5719-llvm-4e79097dc7c30ea8e1a7e96b740113e7cd9e635d.tar.gz bcm5719-llvm-4e79097dc7c30ea8e1a7e96b740113e7cd9e635d.zip | |
[CrossTU] Handle case when no USR could be generated during Decl search.
Summary:
When searching for a declaration to be loaded the "lookup name" for every
other Decl is computed. If the USR can not be determined here should be
not an assert, instead skip this Decl.
Reviewers: martong
Reviewed By: martong
Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D65445
llvm-svn: 368020
Diffstat (limited to 'clang/test/Analysis/func-mapping-test.cpp')
| -rw-r--r-- | clang/test/Analysis/func-mapping-test.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Analysis/func-mapping-test.cpp b/clang/test/Analysis/func-mapping-test.cpp index f6eeb261da5..5c04d9411fe 100644 --- a/clang/test/Analysis/func-mapping-test.cpp +++ b/clang/test/Analysis/func-mapping-test.cpp @@ -41,3 +41,10 @@ union U { }; U u = {.a = 6}; // CHECK-DAG: c:@u + +// No USR can be generated for this. +// Check for no crash in this case. +static union { + float uf; + const int ui; +}; |

