summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2013-08-30 08:52:28 +0000
committerPavel Labath <labath@google.com>2013-08-30 08:52:28 +0000
commit66ea35d9f3d93cab3ca6d735c8eb19a5f701b86f (patch)
treee291af416a42b64bf3b84c25e5650c67c4c90ede /lib/CodeGen/CGExpr.cpp
parent13d2aa5c8fbb62abf8531bc6e1b7aa89c60fba4f (diff)
downloadclang-66ea35d9f3d93cab3ca6d735c8eb19a5f701b86f.tar.gz
clang-66ea35d9f3d93cab3ca6d735c8eb19a5f701b86f.tar.bz2
clang-66ea35d9f3d93cab3ca6d735c8eb19a5f701b86f.tar.xz
Sema: avoid reuse of Exprs when synthesizing operator=
Summary: Previously, Sema was reusing parts of the AST when synthesizing an assignment operator, turning it into a AS-dag. This caused problems for the static analyzer, which assumed an expression appears in the tree only once. Here I make sure to always create a fresh Expr, when inserting something into the AST, fixing PR16745 in the process. Reviewers: doug.gregor CC: cfe-commits, jordan_rose Differential Revision: http://llvm-reviews.chandlerc.com/D1425 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions