diff options
| author | Artem Dergachev <artem.dergachev@gmail.com> | 2018-03-12 23:36:12 +0000 |
|---|---|---|
| committer | Artem Dergachev <artem.dergachev@gmail.com> | 2018-03-12 23:36:12 +0000 |
| commit | 09a7c0c77de0e48e819b8b07ee06095396e108f0 (patch) | |
| tree | 5d2f66c569af4e8a109f95d9e012f2618a062ae6 /clang/test/Analysis/explain-svals.cpp | |
| parent | 98a24bf76d08f2cd69c0205e0313cbcddcc658cb (diff) | |
| download | bcm5719-llvm-09a7c0c77de0e48e819b8b07ee06095396e108f0.tar.gz bcm5719-llvm-09a7c0c77de0e48e819b8b07ee06095396e108f0.zip | |
[analyzer] Support temporaries conjured by conservatively evaluated functions.
Properly perform destruction and lifetime extension of such temporaries.
C++ object-type return values of conservatively evaluated functions are now
represented as compound values of well-defined temporary object regions. The
function creates a region that represents the temporary object and will later
be used for destruction or materialization, invalidates it, and returns the
invalidated compound value of the object.
Differential Revision: https://reviews.llvm.org/D44131
llvm-svn: 327348
Diffstat (limited to 'clang/test/Analysis/explain-svals.cpp')
| -rw-r--r-- | clang/test/Analysis/explain-svals.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/explain-svals.cpp b/clang/test/Analysis/explain-svals.cpp index d4b56a34825..ecb5af1f8ef 100644 --- a/clang/test/Analysis/explain-svals.cpp +++ b/clang/test/Analysis/explain-svals.cpp @@ -94,5 +94,5 @@ public: void test_6() { clang_analyzer_explain(conjure_S()); // expected-warning-re{{{{^lazily frozen compound value of temporary object constructed at statement 'conjure_S\(\)'$}}}} - clang_analyzer_explain(conjure_S().z); // expected-warning-re{{{{^value derived from \(symbol of type 'struct S' conjured at statement 'conjure_S\(\)'\) for field 'z' of temporary object constructed at statement 'conjure_S\(\)'$}}}} + clang_analyzer_explain(conjure_S().z); // expected-warning-re{{{{^value derived from \(symbol of type 'int' conjured at statement 'conjure_S\(\)'\) for field 'z' of temporary object constructed at statement 'conjure_S\(\)'$}}}} } |

