summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/auto-obj-dtors-cfg-output.cpp
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2018-02-24 02:07:50 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2018-02-24 02:07:50 +0000
commit8cc55e9f16ddc19186dd593d2b69b6b43e04d6ac (patch)
tree15eee642d1cde8624b81659efcad6408a02d88b9 /clang/test/Analysis/auto-obj-dtors-cfg-output.cpp
parentceb7d91a484982cfca84c102cfddb90b3963c46e (diff)
downloadbcm5719-llvm-8cc55e9f16ddc19186dd593d2b69b6b43e04d6ac.tar.gz
bcm5719-llvm-8cc55e9f16ddc19186dd593d2b69b6b43e04d6ac.zip
[CFG] Provide construction contexts for temporaries bound to const references.
In order to bind a temporary to a const lvalue reference, a no-op cast is added to make the temporary itself const, and only then the reference is taken (materialized). Skip the no-op cast when looking for the construction context. Differential Revision: https://reviews.llvm.org/D43481 llvm-svn: 326016
Diffstat (limited to 'clang/test/Analysis/auto-obj-dtors-cfg-output.cpp')
-rw-r--r--clang/test/Analysis/auto-obj-dtors-cfg-output.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/auto-obj-dtors-cfg-output.cpp b/clang/test/Analysis/auto-obj-dtors-cfg-output.cpp
index 42e648312f6..b5b0e5c218a 100644
--- a/clang/test/Analysis/auto-obj-dtors-cfg-output.cpp
+++ b/clang/test/Analysis/auto-obj-dtors-cfg-output.cpp
@@ -50,7 +50,7 @@ extern const bool UV;
// CHECK-NEXT: 4: [B1.3] (ImplicitCastExpr, NoOp, const class A)
// CHECK-NEXT: 5: const A &b = a;
// WARNINGS-NEXT: 6: A() (CXXConstructExpr, class A)
-// ANALYZER-NEXT: 6: A() (CXXConstructExpr, [B1.7], class A)
+// ANALYZER-NEXT: 6: A() (CXXConstructExpr, [B1.7], [B1.9], class A)
// CHECK-NEXT: 7: [B1.6] (BindTemporary)
// CHECK-NEXT: 8: [B1.7] (ImplicitCastExpr, NoOp, const class A)
// CHECK-NEXT: 9: [B1.8]
OpenPOWER on IntegriCloud